Edgewall Software
Modify

Opened 8 years ago

Closed 8 years ago

#12337 closed defect (fixed)

AttributeError: 'NoneType' object has no attribute 'realm'

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.10
Component: attachment Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

TracError is raised for an attachment path that specifies attachment as the resource parent.

API Changes:
Internal Changes:

Description

Found in the logs:

[pid 1149 140573412062976] 2016-01-29 13:06:22,995 Trac[main] ERROR: Internal Server Error: <RequestWithSession "GET '/attachment/attachment/ticket/6109'">, referrer None
Traceback (most recent call last):
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/web/main.py", line 607, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/web/main.py", line 256, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/attachment.py", line 195, in process_request
    if not resource_exists(self.env, parent):
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/resource.py", line 468, in resource_exists
    return manager.resource_exists(resource)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/attachment.py", line 380, in resource_exists
    attachment = Attachment(self.env, resource)
  File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/attachment.py", line 661, in __init__
    self.parent_realm = resource.parent.realm
AttributeError: 'NoneType' object has no attribute 'realm'

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 8 years ago

Release Notes: modified (diff)

comment:2 by Ryan J Ollos, 8 years ago

Resolution: fixed
Status: assignedclosed

Committed to 1.0-stable in [14507], merged to trunk in [14508].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.