Modify ↓
#12595 closed defect (fixed)
AttributeError: 'NoneType' object has no attribute 'id'
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | VotePlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann | Trac Release: |
Description
Found the following in the logs, running version 0.4 of the plugin:
2015-11-28 07:06:10,616 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/changeset/160/tracfrenchtranslation/0.9/templates/newticket.cs'">, referrer 'https://bobcat.edgewall.com/'Traceback (most recent call last): File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 554, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 257, in dispatch self._post_process_request(req, *resp) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/web/main.py", line 388, in _post_process_request resp = f.post_process_request(req, *resp) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/tracvote/__init__.py", line 396, in post_process_request resource = resource_from_path(self.env, req.path_info) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/tracvote/__init__.py", line 95, in resource_from_path if _resource_exists(env, resource) in (None, True): File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/tracvote/__init__.py", line 76, in _resource_exists return resource_exists(env, resource) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/resource.py", line 454, in resource_exists return manager.resource_exists(resource) File "/srv/trac-hacks.org/pve/lib/python2.7/site-packages/trac/versioncontrol/api.py", line 469, in resource_exists reponame = resource.parent.id AttributeError: 'NoneType' object has no attribute 'id'
Attachments (0)
Change History (11)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Status: | new → accepted |
---|
comment:3 Changed 9 years ago by
Rendering the voter for changesets would be a nice feature, but that's in the realm of #11073.
comment:6 Changed 9 years ago by
0.5.0 will be released soon. You can just as well install from the trunk.
comment:8 Changed 9 years ago by
If you installed from the trunk and have 0.5.0dev installed, then the issue should be fixed. You may need to reinstall from the latest trunk.
comment:9 Changed 9 years ago by
I know, it's fixed for us using the trunk version. But it's a big issue that's why I suggested a new release as soon as possible.
For us it broke attachments.
Note: See
TracTickets for help on using
tickets.
Issue likely occurs after [15059] with changeset for a default repository. I'm assuming in that case the
resource.parent
will beNone
.