Open Bug 395930 Opened 17 years ago Updated 9 years ago

Ability to search for any bugs assigned to a disabled account

Categories

(Bugzilla :: Query/Bug List, enhancement, P4)

enhancement

Tracking

()

People

(Reporter: altlist, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: 

It would be great if Bugzilla supported the ability to search for any tickets assigned to a disabled account.  I don't see how that can be done with the existing search page.

In particular, I'd like to set up a weekly whine message, so that the associated reporter knows the ticket is no longer assigned to an active account. 

Reproducible: Always
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P4
Summary: Ability to search for any tickets assigned to a disabled account → Ability to search for any bugs assigned to a disabled account
For the record, I auto assign disabled accounts to the "disabled" group.  I can then do this type of search:

  Assignee is-equal-to  %group.disabled%
Clarification, this also requires loosening the check that a user can access the disabled group.  Below is a hack.  Don't know why Bugzilla even needs such a restriction.    

--- Bugzilla/Search.pm.orig	2014-12-30 20:07:46.000000000 -0600
+++ Bugzilla/Search.pm	2014-12-30 20:09:48.625414412 -0600
@@ -2422,7 +2422,7 @@
     my $group = Bugzilla::Group->check({ name => $group_name, _error => 'invalid_group_name' });
     # Pass $group_name instead of $group->name to the error message
     # to not leak the existence of the group.
-    $user->in_group($group)
+    $user->in_group($group) || $group_name eq "disabled"
       || ThrowUserError('invalid_group_name', { name => $group_name });
     # Now that we know the user belongs to this group, it's safe
     # to disclose more information.
You need to log in before you can comment on or make changes to this bug.