Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7808 closed defect (duplicate)

Cannot add TICKET_CREATE permission to "developers"

Reported by: anonymous Owned by:
Priority: high Milestone:
Component: admin/web Version:
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

In the administration system I tried to add TICKET_CREATE permission to "developers" and system fail with the following error:

Python Traceback

Traceback (most recent call last):
  File "/data/devjavu/current/trac/lib/trac/web/main.py", line 420, in dispatch_request
    dispatcher.dispatch(req)
  File "/data/devjavu/current/trac/lib/trac/web/main.py", line 243, in dispatch
    resp = chosen_handler.process_request(req)
  File "/data/devjavu/releases/20080301064410/trac/src/plugins/webadmin/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "/data/devjavu/releases/20080301064410/trac/src/plugins/webadmin/webadmin/perm.py", line 45, in process_admin_request
    perm.grant_permission(subject, action)
  File "/data/devjavu/current/trac/lib/trac/perm.py", line 210, in grant_permission
    self.store.grant_permission(username.lower(), action)
  File "/data/devjavu/current/trac/lib/trac/perm.py", line 154, in grant_permission
    (username, action))
  File "/data/devjavu/current/trac/lib/trac/db/util.py", line 50, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/data/devjavu/current/trac/lib/trac/db/sqlite_backend.py", line 56, in execute
    args or [])
  File "/data/devjavu/current/trac/lib/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, 16 years ago

Description: modified (diff)
Priority: highesthigh
Resolution: duplicate
Severity: blockermajor
Status: newclosed
Version: none

Please read the guidelines to create ticket and learn how to report an issue:

  • this error has been reported several times, it's quite easy to locate duplicate:
    searching for "columns username, action are not unique" does the trick
  • this is not a blocker issue - although an important one
  • please use verbatim block(s) to quote any error message
  • please always report the version of Trac you're using

Duplicate of #6348

Modify Ticket

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