Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6208 closed defect (duplicate)

add same permission to an user twice

Reported by: adiroiban@… Owned by: Christopher Lenz
Priority: lowest Milestone:
Component: admin/web Version: 0.10.3
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Go to TracAdmin → Manage Permissions

Grant Permission "TRAC_ADMIN" to user John1 . Everything is ok. Now add the same permission again and you will get this message. In not a critical error.

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r5753-py2.5.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r5753-py2.5.egg/webadmin/perm.py", line 45, in process_admin_request
    perm.grant_permission(subject, action)
  File "/var/lib/python-support/python2.5/trac/perm.py", line 190, in grant_permission
    self.store.grant_permission(username, action)
  File "/var/lib/python-support/python2.5/trac/perm.py", line 143, in grant_permission
    (username, action))
  File "/var/lib/python-support/python2.5/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/var/lib/python-support/python2.5/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "/var/lib/python-support/python2.5/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 Emmanuel Blot, 17 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #5444.

Please search for duplicate before submitting a new ticket. A search with the error message gives you the duplicate entries…

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.