Opened 8 years ago

Closed 8 years ago

#4905 closed defect (fixed)

UserManagerPlugin bug with ProtectedMacro (ProtectedAttachmentPolicy)

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



The UserManagerPlugin show this debug:

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

Software versions: ProtectedMacro: 2.0.0, UserManagerPlugin: 0.4, Trac:, 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


Attachments (1) (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

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 cbalan

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

comment:4 Changed 8 years ago by cbalan

  • Resolution set to fixed
  • Status changed from new to closed

Thank you KlauX. Closing this ticket.

Add Comment

Modify Ticket

as closed The owner will remain cbalan.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.