Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Tickets

[The Trac Project] #3873: Trac Internal Error

 

 

Trac tickets RSS feed   Index | Next | Previous | View Threaded


noreply at edgewall

Oct 5, 2006, 8:15 PM

Post #1 of 4 (1468 views)
Permalink
[The Trac Project] #3873: Trac Internal Error

#3873: Trac Internal Error
------------------------------------+---------------------------------------
Reporter: tom.fiala [at] orionsmg | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.10
Severity: normal | Keywords:
------------------------------------+---------------------------------------
I received an internal error when trying to assign an already assigned
admin permission to a subject. I would have expected an error message
informing me the permission was already assigned. Here is the trace log:
Python Traceback

Traceback (most recent call last):
File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
line 339, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
line 224, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/python-2.4/lib/python2.4/site-
packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/web_ui.py", line
106, in process_request
path_info)
File "/usr/local/python-2.4/lib/python2.4/site-
packages/TracWebAdmin-0.1.1dev_r2765-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 47, 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 44, in execute
args or [])
File "/usr/local/python/lib/python2.4/site-
packages/trac/db/sqlite_backend.py", line 36, in _rollback_on_error
return function(self, *args, **kwargs)
IntegrityError: columns username, action are not unique

--
Ticket URL: <http://trac.edgewall.org/ticket/3873>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Oct 6, 2006, 12:19 AM

Post #2 of 4 (1393 views)
Permalink
Re: [The Trac Project] #3873: Trac Internal Error [In reply to]

#3873: Trac Internal Error
------------------------------------+---------------------------------------
Reporter: tom.fiala [at] orionsmg | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone: 0.10.1
Component: general | Version: 0.10
Severity: minor | Resolution:
Keywords: |
------------------------------------+---------------------------------------
Changes (by cboos):

* severity: normal => minor
* milestone: => 0.10.1

Old description:

> I received an internal error when trying to assign an already assigned
> admin permission to a subject. I would have expected an error message
> informing me the permission was already assigned. Here is the trace log:
> Python Traceback
>
> Traceback (most recent call last):
> File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
> line 339, in dispatch_request
> dispatcher.dispatch(req)
> File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
> line 224, in dispatch
> resp = chosen_handler.process_request(req)
> File "/usr/local/python-2.4/lib/python2.4/site-
> packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/web_ui.py", line
> 106, in process_request
> path_info)
> File "/usr/local/python-2.4/lib/python2.4/site-
> packages/TracWebAdmin-0.1.1dev_r2765-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 47, 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 44, in execute
> args or [])
> File "/usr/local/python/lib/python2.4/site-
> packages/trac/db/sqlite_backend.py", line 36, in _rollback_on_error
> return function(self, *args, **kwargs)
> IntegrityError: columns username, action are not unique

New description:

I received an internal error when trying to assign an already assigned
admin permission to a subject. I would have expected an error message
informing me the permission was already assigned. Here is the trace log:
Python Traceback
{{{
Traceback (most recent call last):
File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
line 339, in dispatch_request
dispatcher.dispatch(req)
File "/usr/local/python/lib/python2.4/site-packages/trac/web/main.py",
line 224, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/python-2.4/lib/python2.4/site-
packages/TracWebAdmin-0.1.1dev_r2765-py2.4.egg/webadmin/web_ui.py", line
106, in process_request
path_info)
File "/usr/local/python-2.4/lib/python2.4/site-
packages/TracWebAdmin-0.1.1dev_r2765-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 47, 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 44, in execute
args or [])
File "/usr/local/python/lib/python2.4/site-
packages/trac/db/sqlite_backend.py", line 36, in _rollback_on_error
return function(self, *args, **kwargs)
IntegrityError: columns username, action are not unique
}}}

Comment:

Right, the error message could be more "friendly".

--
Ticket URL: <http://trac.edgewall.org/ticket/3873#comment:1>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Oct 6, 2006, 1:11 AM

Post #3 of 4 (1374 views)
Permalink
Re: [The Trac Project] #3873: Trac Internal Error [In reply to]

#3873: Trac Internal Error
------------------------------------+---------------------------------------
Reporter: tom.fiala [at] orionsmg | Owner: cmlenz
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: webadmin | Version: 0.10
Severity: minor | Resolution:
Keywords: |
------------------------------------+---------------------------------------
Changes (by cmlenz):

* owner: jonas => cmlenz
* component: general => webadmin
* milestone: 0.10.1 => 0.11

Comment:

This is a WebAdmin ticket, so it can't really be targetted for
[milestone:0.10.1].

--
Ticket URL: <http://trac.edgewall.org/ticket/3873#comment:2>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Oct 6, 2006, 1:11 AM

Post #4 of 4 (1380 views)
Permalink
Re: [The Trac Project] #3873: Trac Internal Error [In reply to]

#3873: Trac Internal Error
------------------------------------+---------------------------------------
Reporter: tom.fiala [at] orionsmg | Owner: cmlenz
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: webadmin | Version: devel
Severity: minor | Resolution:
Keywords: |
------------------------------------+---------------------------------------
Changes (by cmlenz):

* version: 0.10 => devel

--
Ticket URL: <http://trac.edgewall.org/ticket/3873#comment:3>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---

Trac tickets RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.