Opened 17 years ago
Closed 17 years ago
#6517 closed defect (worksforme)
"Attach file" fails with HTMLParserError
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | attachment | Version: | 0.10.4 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
For any ticket in trac, if I click on "Attach file", I get the error below. I'm running trac 10.4 on freebsd 6.2. The trac environment was upgraded from 10.2. I'm using the default templates that come with 10.4 w/o modification. trac.log shows the exact same backtrace as below and nothing else. I'm also running trac accountmanager and trac webadmin.
It seems like an HTML error somewhere but can't figure out where from the backtrace. Any help?
Oops... Trac detected an internal error: If you think this really should work and you can reproduce it. Then you should consider to report this problem to the Trac team. Go to http://trac.edgewall.org/ and create a new ticket where you describe the problem, how to reproduce it. Don't forget to include the python traceback found below. TracGuide — The Trac User and Administration Guide Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 244, in dispatch req.display(template, content_type or 'text/html') File "/usr/local/lib/python2.5/site-packages/trac/web/api.py", line 358, in display data = self.hdf.render(template, form_token) File "/usr/local/lib/python2.5/site-packages/trac/web/clearsilver.py", line 296, in render injector.feed(template.render()) File "/usr/local/lib/python2.5/HTMLParser.py", line 108, in feed self.goahead(0) File "/usr/local/lib/python2.5/HTMLParser.py", line 150, in goahead k = self.parse_endtag(i) File "/usr/local/lib/python2.5/HTMLParser.py", line 314, in parse_endtag self.error("bad end tag: %r" % (rawdata[i:j],)) File "/usr/local/lib/python2.5/HTMLParser.py", line 115, in error raise HTMLParseError(message, self.getpos()) HTMLParseError: bad end tag: '</label\n </div>', at line 57, column 55
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
Component: | general → attachment |
---|---|
Owner: | changed from | to
Version: | → 0.10.4 |
comment:2 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
sorry, I'm an idiot. I was using an older set of templates with bugs in it.
You meant versions 0.10.2 and 0.10.4.
Please fill in the dedicated field in the ticket description box when you submit a ticket.