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
