Ticket #3658 (closed defect: Fixed)

Opened 4 months ago

Last modified 3 months ago

Cannot add user from the group submenu

Reported by: bbibeault Owned by: bedwards
Priority: 2 - High Milestone: zenoss-2.3
Component: All Version: 2.2.3
Keywords: Cc:
Community Patch Attached: Deployed @ Customer:
Installer: Maintenance Target:
Specific ZenPack: Maintenance Status:
Documentation Note?: Not required Regression:

Description (last modified by bbibeault) (diff)

Zenoss's Admin -> User console has the ability to add users and add groups. It also has the ability to add users from the groups sub-menu. When you try and add a user with a custom group created, you receive an error.

Reproduce :

  • Login as an admin user, go to Management -> Settings -> Users
  • Add a custom group (name is not important)
  • From the groups sub-menu, select "Add User"

Results :
Error submission page -

 Type: UnboundLocalError
Value: local variable 'groupid' referenced before assignment

Traceback (innermost last):

    * Module ZPublisher.Publish, line 114, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.ZenModel.UserSettings, line 371, in manage_addUsersToGroups

UnboundLocalError: local variable 'groupid' referenced before assignment 

Attachments

UserSettings.py-3658.diff (0.7 kB) - added by bedwards 3 months ago.
patch submitted by my friend Leo, I verified it, but I'll get a code read before I check it in

Change History

Changed 4 months ago by bbibeault

  • description modified (diff)

Changed 4 months ago by bbibeault

  • description modified (diff)
  • summary changed from Cannot add user from submenu if two groups exist to Cannot add user from the group submenu

Changed 4 months ago by bbibeault

  • reviewed changed from 0 to 1

Changed 3 months ago by bedwards

  • owner changed from edahl to bedwards
  • status changed from new to assigned

Changed 3 months ago by bedwards

patch submitted by my friend Leo, I verified it, but I'll get a code read before I check it in

Changed 3 months ago by bedwards

  • status changed from assigned to closed
  • resolution set to fixed

(In [10642]) Fixes #3658: print an error message when no groups are selected. fix by leo. reviewed by kells.

Note: See TracTickets for help on using tickets.