Modify ↓
#4967 closed defect (duplicate)
internal error when displaying .sql attachment
| Reported by: | anonymous | Owned by: | Christian Boos |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | version control/browser | Version: | 0.10.3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Trac returns an internal error when rendering a .sql attachment containing the following SQL statement:
INSERT INTO `somedb` VALUES ('<a "http://trac.edgewall.org">trac</a>');
I think this is valid SQL?
The error:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 244, in dispatch
req.display(template, content_type or 'text/html')
File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 358, in display
data = self.hdf.render(template, form_token)
File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 296, in render
injector.feed(template.render())
File "/usr/lib/python2.4/HTMLParser.py", line 108, in feed
self.goahead(0)
File "/usr/lib/python2.4/HTMLParser.py", line 150, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.4/HTMLParser.py", line 314, in parse_endtag
self.error("bad end tag: %r" % (rawdata[i:j],))
File "/usr/lib/python2.4/HTMLParser.py", line 115, in error
raise HTMLParseError(message, self.getpos())
HTMLParseError: bad end tag: '</a">', at line 55, column 282
Attachments (1)
Change History (6)
by , 19 years ago
comment:1 by , 19 years ago
comment:2 by , 19 years ago
the following can be attached as both test.txt and test.sql:
'<a href="https://"></a>'
the following can only be attached as test.txt:
'<a href="http://"></a>'
changing https to http prevents rendering as test.sql.
comment:3 by , 19 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
comment:4 by , 19 years ago
thanks. i should have searched more carefully.
ticket:4931 is related to SMTP and TLS?
comment:5 by , 19 years ago
Note:
See TracTickets
for help on using tickets.



The above link to the attachment page returns the same error.
The attachment may be downloaded directly here:
test.sql