Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#5283 closed defect (worksforme)

Trac error: in permission list after adding the XML_RPC permission

Reported by: andy@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.3
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hello there.

I have Trac 0.10.3 installed here, and after adding the XML_RPC permission to anonymous, "permission list" causes the following error:

Command failed: sequence item 0: expected string, list found

Meanwhile there is only anonymous with TRAC_ADMIN permission left, and the Trac Web UI gives me the following 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 183, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/var/lib/python-support/python2.5/trac/perm.py", line 263, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/var/lib/python-support/python2.5/trac/perm.py", line 228, in get_user_permissions
    _expand_meta(perm)
  File "/var/lib/python-support/python2.5/trac/perm.py", line 226, in _expand_meta
    [_expand_meta(perm) for perm in meta[action]]
  File "/var/lib/python-support/python2.5/trac/perm.py", line 224, in _expand_meta
    permissions[action] = True
TypeError: list objects are unhashable

Attachments (0)

Change History (6)

comment:1 by Christian Boos, 18 years ago

Keywords: verify added
Summary: Trac error:Trac error: in permission list after adding the XML_RPC permission

comment:2 by Emmanuel Blot, 18 years ago

Keywords: verify removed
Resolution: worksforme
Status: newclosed
Version: 0.10.3

I can't reproduce this issue neither with 0.10.3 nor 0.10.4:

/usr/local/bin/python2.5 /Users/eblot/Sources/Svn/edgewall.org/trac/tags/trac-0.10.3/scripts/trac-admin /Users/eblot/Trac/Db/parent
Welcome to trac-admin 0.10.3
Interactive Trac administration console.
Copyright (c) 2003-2006 Edgewall Software

Type:  '?' or 'help' for help on commands.

Trac [/Users/eblot/Trac/Db/parent/project1]> permission list
01:34:47 Trac[loader] DEBUG: Loading egg plugin TracXMLRPC from /Users/eblot/Trac/Db/parent/project1/plugins/TracXMLRPC-0.1-py2.5.egg

User       Action         
--------------------------
anonymous  BROWSER_VIEW   
anonymous  CHANGESET_VIEW 
anonymous  FILE_VIEW      
anonymous  LOG_VIEW       
anonymous  MILESTONE_VIEW 
anonymous  REPORT_SQL_VIEW
anonymous  REPORT_VIEW    
anonymous  ROADMAP_VIEW   
anonymous  SEARCH_VIEW    
anonymous  TICKET_CREATE  
anonymous  TICKET_MODIFY  
anonymous  TICKET_VIEW    
anonymous  TIMELINE_VIEW  
anonymous  WIKI_CREATE    
anonymous  WIKI_MODIFY    
anonymous  WIKI_VIEW      
anonymous  XML_RPC        
eblot      TRAC_ADMIN     


Available actions:
 BROWSER_VIEW, CHANGESET_VIEW, CONFIG_VIEW, FILE_VIEW, LOG_VIEW,
 MILESTONE_ADMIN, MILESTONE_CREATE, MILESTONE_DELETE, MILESTONE_MODIFY,
 MILESTONE_VIEW, REPORT_ADMIN, REPORT_CREATE, REPORT_DELETE, REPORT_MODIFY,
 REPORT_SQL_VIEW, REPORT_VIEW, ROADMAP_ADMIN, ROADMAP_VIEW, SEARCH_VIEW,
 TICKET_ADMIN, TICKET_APPEND, TICKET_CHGPROP, TICKET_CREATE, TICKET_MODIFY,
 TICKET_VIEW, TIMELINE_VIEW, TRAC_ADMIN, WIKI_ADMIN, WIKI_CREATE,
 WIKI_DELETE, WIKI_MODIFY, WIKI_VIEW, XML_RPC

Trac [/Users/eblot/Trac/Db/parent/project1]> 

I also tried with Python 2.4

comment:3 by Emmanuel Blot, 18 years ago

Do you have any other plugin installed w/ your environment?

comment:4 by anonymous, 18 years ago

Thanks for caring so far!

I installed the XmlRpcPlugin and the ExtendedXmlRpc-Plugin. Also the AzCalendarPlugin.

comment:5 by Emmanuel Blot, 18 years ago

Try disabling the other plugins to see if the issue still shows up.

comment:6 by Emmanuel Blot, 18 years ago

Keywords: needinfo added

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.