Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006390mantisbtbugtrackerpublic2005-11-04 11:272009-08-20 15:38
Reportermmchenry 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version1.0.0rc3 
Target VersionFixed in Version 
Summary0006390: Group action assign broken again
DescriptionThreshold and access validation on group action assign seems to be broken. Even if user has permission to change status and assign, and assigned user has permission to handle bugs, you get a permission denied message when assigning via group actions.

Assigning an individual bug works as expected.

Similar to 0006068, but problem is at the validation level instead of the UI level.
Additional InformationI believe the problem is in bug_actiongroup.php around line 112. It looks to me like it's checking if the assigned user has permission to change status to assigned instead of current user.

Current code:
if ( access_has_bug_level( $t_threshold , $t_bug_id, $f_assign ) &&
     access_has_bug_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ), $t_bug_id ) &&

I think should be changed to:
if ( access_has_bug_level( $t_threshold , $t_bug_id ) &&
     access_has_bug_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ), $t_bug_id, $f_assign ) &&
TagsNo tags attached.
Attached Filespatch file icon bug_actiongroup.php.patch [^] (1,607 bytes) 2007-05-24 10:55 [Show Content]

- Relationships

-  Notes
User avatar (0014630)
ave (reporter)
2007-05-24 10:56

Attached patch resolves inconsistency between group assigning and individual assigning.
It is against bug_actiongroup.php v 1.50.

It basically reflects validation defined in bug_assign.php.
As a result, this patch also fixes another bug ; sponsored issues can be assigned via group action regardless of the values of '$g_assign_sponsored_bugs_threshold' and '$g_handle_sponsored_bugs_threshold'.
User avatar (0021823)
mmchenry (reporter)
2009-05-14 18:33

Not to seem ungrateful, but we're going on four years later and this still has not been fixed as of 1.1.7.

Is there some problem getting this patch into the shipping code? Or can we at least get it into the upcoming 1.2.x?

It's not like this is an oddball enhancement request. It's incorrect validation preventing the feature from working as designed. It really should be fixed.

- Issue History
Date Modified Username Field Change
2005-11-04 11:27 mmchenry New Issue
2007-03-21 11:09 renfrowl Issue Monitored: renfrowl
2007-05-24 10:55 ave File Added: bug_actiongroup.php.patch
2007-05-24 10:56 ave Note Added: 0014630
2007-06-09 12:43 vboctor Status new => acknowledged
2009-05-14 18:33 mmchenry Note Added: 0021823
2009-08-20 15:38 damien_b Issue Monitored: damien_b


MantisBT 1.2.0rc2 git live[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2000 seconds.
memory usage: 1,812 KB
Powered by Mantis Bugtracker