I've been doing some tidying up of the wiki on my works installation of Trac and realised that since the last time I updated trac the fine grained permissions have stopped working. When I last did an upgrade I kept getting an error when I tried going to any page in trac, whether that was a wiki page, a ticket or an admin page and so on.
I wondered if there was something that had changed in the ini file that was causing this, as 2 other minor installations I have here were working correctly. So I backed up my ini file, deleted it and let Trac create a new one and then ported elements from the old ini across until it was back into its previous state. Sometimes I'm a bit blonde (I'm allowed to say that, cos I am blonde ;) ) and it didn't occur to me at the time that the ini settings that I'd removed to get trac up and running was AuthzPolicy from the permission_policy setting. Anyway, I dug out the http://trac.edgewall.org/wiki/TracDev/SecurityBranchnotes and checked my set up matched these notes and added AuthzPolicy back in to the permissions policy. At this point I received the following error message trying to access any part of the trac installation: Traceback (most recent call last): File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\web\api.py", line 341, in send_error 'text/html') File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\web\chrome.py", line 590, in render_template data = self.populate_data(req, data) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\web\chrome.py", line 498, in populate_data d['chrome'].update(req.chrome) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\web\api.py", line 170, in __getattr__ value = self.callbacks[name](self) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\web\chrome.py", line 377, in prepare_request for category, name, text in contributor.get_navigation_items(req): File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\admin\web_ui.py", line 63, in get_navigation_items panels, providers = self._get_panels(req) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\admin\web_ui.py", line 155, in _get_panels p = list(provider.get_admin_panels(req)) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\admin\web_ui.py", line 178, in get_admin_panels if 'TRAC_ADMIN' in req.perm: File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\perm.py", line 519, in has_permission return self._has_permission(action, resource) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\perm.py", line 531, in _has_permission check_permission(action, perm.username, resource, perm) File "c:\python25\lib\site-packages\trac- 0.11dev_r6273-py2.5.egg\trac\perm.py", line 424, in check_permission perm) TypeError: check_permission() takes exactly 4 arguments (5 given) As you can see I'm on Windows, Python 2.5 using Trac 0.11 r6273. My authzpolicy config looks like this : [groups] Admin = me,him Developer = other [wiki:[EMAIL PROTECTED] @Admin = WIKI_VIEW, WIKI_CREATE, WIKI_MODIFY, WIKI_DELETE @Developer = WIKI_VIEW, WIKI_CREATE, WIKI_MODIFY * = Is this an oddity that only I am seeing? Can anyone see what I might have done wrong or do I need to submit a bug report? Thanks in advance and best regards Stephen == Stephen Moretti Blog : http://nil.checksite.co.uk/ Twitter : http://twitter.com/mr_nil SOTR : http://www.scotch-on-the-rocks.co.uk/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
