Modify

Opened 16 years ago

Closed 16 years ago

#4493 closed defect (duplicate)

upgrade of trac + ldapplugin does not work

Reported by: mikhail@… Owned by: Emmanuel Blot
Priority: normal Component: LdapPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I have upgraded Trac and LdapPlugin. Some of functionality does not work any more. For example if I want to see a ticket I'm getting exception:

Most recent call last:

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/web/main.py", line 432, in _dispatch_request

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/web/main.py", line 204, in dispatch

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/web_ui.py", line 181, in process_request

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/web_ui.py", line 530, in _process_ticket_request

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/web_ui.py", line 1168, in _insert_ticket_data

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/web_ui.py", line 1080, in _prepare_fields

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/api.py", line 320, in eventually_restrict_owner

File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/perm.py", line 396, in get_users_with_permission

Code fragment:

satisfying_perms[action] = True if action in parent_map:

map(_append_with_parents, parent_map[action])

_append_with_parents(permission)

return self.store.get_users_with_permissions(satisfying_perms.keys())

def expand_actions(self, actions):

"""Helper method for expanding all meta actions.""" meta = {} for requestor in self.requestors:

Local variables: Name Value _append_with_parents <function _append_with_parents at 0x8cebb8c>

action

'CRUISECONTROL_VIEW'

child

'R'

parent_map

{'MILESTONE_DELETE': ['TRAC_ADMIN', 'MILESTONE_ADMIN', 'ROADMAP_ADMIN'], ...

permission

'TICKET_MODIFY'

requestor

<traccc.traccc.CruiseControlPlugin object at 0x88f68ec>

satisfying_perms

{'TICKET_MODIFY': True, 'TICKET_ADMIN': True, 'TRAC_ADMIN': True}

self

<trac.perm.PermissionSystem object at 0x88ee54c>

With short message: Trac detected an internal error: AttributeError: 'LdapPermissionStore' object has no attribute 'get_users_with_permissions'

I did not find the function called 'get_users_with_permissions' in LdapPlugin too :)

My versions are: FreeBSD 6.2 Python 2.5.2 Trac 0.11.2 Trac-ldap 0.5.1_3

Attachments (0)

Change History (1)

comment:1 Changed 16 years ago by Emmanuel Blot

Resolution: duplicate
Status: newclosed

See #3869.

BTW, please quote your Python tracebacks w/ verbatim blocks ({{{ }}})

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.