id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9785,"Invalid attachment' displayed on every page after bookmarking attachments page,rjollos,rjollos,After uploading an attachment named to ticket 1253_ I see "Invalid attachment" displayed when trying to navigate to any realm. The following was captured when navigating to the `/report` page:\r\n\r\n[[Image(InvalidAttachment.png)]]\r\n\r\nThe attachment name is ''hardware mode error.png''. The ticket summary is ''BLS Program Execution Hardware Fault''. Disabling the BookmarkPlugin eliminates the error.\r\n\r\nHere is the traceback from the log file.\r\n{{{\r\n2012-02-10 15:12:40_675 Trac[main] WARNING: HTTPNotFound: 404 Invalid Attachment (Attachment 'ticket:: 1253' does not exist.)\r\n2012-02-10 15:12:41_984 Trac[main] ERROR: Exception caught while post-processing request:\r\nTraceback (most recent call last):\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py"_ line 276_ in dispatch\r\n    self._post_process_request(req)\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/web/main.py"_ line 365_ in _post_process_request\r\n    f.post_process_request(req_ *(None_)*extra_arg_count)\r\n  File "build/bdist.linux-x86_64/egg/tracbookmark/__init__.py"_ line 173_ in post_process_request\r\n    self.render_bookmarker(req)\r\n  File "build/bdist.linux-x86_64/egg/tracbookmark/__init__.py"_ line 291_ in render_bookmarker\r\n    params = self.__format_name(req_ url)\r\n  File "build/bdist.linux-x86_64/egg/tracbookmark/__init__.py"_ line 238_ in __format_name\r\n    name = get_resource_description(self.env_ resource_ 'summary')\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/resource.py"_ line 333_ in get_resource_description\r\n    return manager.get_resource_description(resource_ format_ **kwargs)\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/attachment.py"_ line 610_ in get_resource_description\r\n    return Attachment(self.env_ resource).description\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/attachment.py"_ line 126_ in __init__\r\n    self._fetch(self.resource.id_ db)\r\n  File "/usr/local/python26_trac12/lib/python2.6/site-packages/Trac-0.12.3-py2.6.egg/trac/attachment.py"_ line 155_ in _fetch\r\n    _('Invalid Attachment'))\r\nResourceNotFound: Attachment 'ticket:: 1253' does not exist.\r\n}}},defect,closed,high,BookmarkPlugin,normal,fixed,,jun66j5_ hasienda,0.12
