Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#5980 closed defect (invalid)

Got trace while adding permission to user

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Tim Hatch)

Traceback (most recent call last):
  File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py", line 393, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/python-2.4.2/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r51-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/usr/local/python-2.4.2/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r51-py2.4.egg/webadmin/perm.py", line 45, in process_admin_request
    perm.grant_permission(subject, action)
  File "/usr/local/python/lib/python2.4/site-packages/trac/perm.py", line 190, in grant_permission
    self.store.grant_permission(username, action)
  File "/usr/local/python/lib/python2.4/site-packages/trac/perm.py", line 143, in grant_permission
    (username, action))
  File "/usr/local/python/lib/python2.4/site-packages/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/python/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "/usr/local/python/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
IntegrityError: columns username, action are not unique

Attachments (0)

Change History (1)

comment:1 by Tim Hatch, 17 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed

I'm closing this ticket under the assumption that you forgot to check that username, action are unique like the traceback says down at the bottom. Feel free to reopen if that's not the case, but please provide more info (current users/perms, the user/perm you're trying to add, etc).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.