Ticket #4905 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

UserManagerPlugin bug with ProtectedMacro (ProtectedAttachmentPolicy)

Reported by: clauzio@yahoo.com.br Assigned to: cbalan
Priority: high Component: UserManagerPlugin
Severity: normal Keywords:
Cc: clauzio@yahoo.com.br 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

api.py.patch (0.7 kB) - added by KlauX on 04/15/09 15:00:25.
The attached patch fixes this problem

Change History

04/13/09 14:00:29 changed by KlauX

  • cc set to clauzio@yahoo.com.br.

The original permission policies: permission_polices = LegacyAttachmentPolicy?, DefaultPermissionPolicy?

ProtectedMacro activation: permission_polices = ProtectedAttachmentPolicy?, LegacyAttachmentPolicy?, DefaultPermissionPolicy?

04/15/09 15:00:25 changed by KlauX

  • attachment api.py.patch added.

The attached patch fixes this problem

04/15/09 15:15:41 changed by KlauX

Hello Mr. cbalan!

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

Thank you!

04/15/09 15:44:23 changed by cbalan

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

04/15/09 15:45:57 changed by cbalan

  • status changed from new to closed.
  • resolution set to fixed.

Thank you KlauX. Closing this ticket.


Add/Change #4905 (UserManagerPlugin bug with ProtectedMacro (ProtectedAttachmentPolicy))




Change Properties
Action