Modify ↓
#10276 closed defect (fixed)
AttributeError: 'NoneType' object has no attribute 'startswith'
Reported by: | anonymous | Owned by: | Remy Blank |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.3 |
Component: | general | Version: | 0.12.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{}
User agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last): File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/wiki/web_ui.py", line 120, in process_request req.perm(page.resource).require('WIKI_VIEW') File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 575, in require if not self._has_permission(action, resource): File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 567, in _has_permission check_permission(action, perm.username, resource, perm) File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 454, in check_permission perm) File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/tracopt/perm/authz_policy.py", line 147, in check_permission os.path.getmtime(self.get_authz_file()) > self.authz_mtime: File "/home/trac/env/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/tracopt/perm/authz_policy.py", line 172, in get_authz_file return os.path.isabs(f) and f or os.path.join(self.env.path, f) File "/home/trac/env/lib/python2.6/posixpath.py", line 52, in isabs return s.startswith('/') AttributeError: 'NoneType' object has no attribute 'startswith'
Attachments (0)
Change History (2)
comment:1 by , 13 years ago
Milestone: | → 0.12.3 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 13 years ago
Owner: | set to |
---|
Note:
See TracTickets
for help on using tickets.
You forgot to set the
[authz_policy] authz_file
option intrac.ini
. Exception fixed in [10761].