Modify ↓
Opened 18 years ago
Closed 18 years ago
#6208 closed defect (duplicate)
add same permission to an user twice
| Reported by: | 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)
Note:
See TracTickets
for help on using tickets.



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