Modify

Opened 8 years ago

Closed 8 years ago

#4905 closed defect (fixed)

UserManagerPlugin bug with ProtectedMacro (ProtectedAttachmentPolicy)

Reported by: clauzio@… Owned by: Catalin BALAN
Priority: high Component: UserManagerPlugin
Severity: normal Keywords:
Cc: clauzio@… Trac Release: 0.11

Description

Hello!

The UserManagerPlugin show this debug:

File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/web/main.py", line 432, in _dispatch_request
  dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/web/main.py", line 204, in dispatch
  resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/wiki/web_ui.py", line 166, in process_request
  return self._render_view(req, versioned_page)
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/wiki/web_ui.py", line 547, in _render_view
  data.update({
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/attachment.py", line 427, in attachment_data
  if 'ATTACHMENT_VIEW' in context.perm(attachment.resource):
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/perm.py", line 523, in has_permission
  return self._has_permission(action, resource)
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/perm.py", line 536, in _has_permission
  decision = PermissionSystem(self.env). \
File "/usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg/trac/perm.py", line 424, in check_permission
  perm)
File "build/bdist.linux-i686/egg/protected/macro.py", line 47, in check_permission

Software versions: ProtectedMacro: 2.0.0, UserManagerPlugin: 0.4, Trac: 0.11.2.1, Python: 2.4.4 [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] setuptools: 0.6c3, SQLite: 3.3.8, pysqlite: 2.3.2, Genshi: 0.5.1, mod_python: 3.2.10, Pygments: 0.9, Subversion: 1.4.2 (r22196), jQuery: 1.2.6

Thx.

Attachments (1)

api.py.patch (667 bytes) - added by KlauX 8 years ago.
The attached patch fixes this problem

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by KlauX

Cc: clauzio@… added; anonymous removed

The original permission policies: permission_polices = LegacyAttachmentPolicy, DefaultPermissionPolicy

ProtectedMacro activation: permission_polices = ProtectedAttachmentPolicy, LegacyAttachmentPolicy, DefaultPermissionPolicy

Changed 8 years ago by KlauX

Attachment: api.py.patch added

The attached patch fixes this problem

comment:2 Changed 8 years ago by KlauX

Hello Mr. cbalan!

After applying the patch attached, this ticket can be closed.

Thank you!

comment:3 Changed 8 years ago by Catalin BALAN

(In [5520]) Applied KlauX's patch. refs #4905

comment:4 Changed 8 years ago by Catalin BALAN

Resolution: fixed
Status: newclosed

Thank you KlauX. Closing this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Catalin BALAN.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.