Opened 6 years ago
Closed 6 years ago
#13045 closed defect (fixed)
ParseError: mismatched tag: line NNN, column CC - in VIEW TICKETS action
Reported by: | Owned by: | Jun Omae | |
---|---|---|---|
Priority: | high | Milestone: | 1.0.17 |
Component: | wiki system | Version: | 1.3.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Wrap macro's content with |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
How to Reproduce
While doing a GET operation on /report
, Trac issued an internal error.
I've created a Custom query and entered following text into the query Description field:
- 6.3.2a [[TicketQuery(milestone=6.3.2a, progress)]]
The TicketQuery macro works in the preview mode but the list of Available Reports or View Tickets action crashes.
Request parameters:
{}
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36
System Information
Trac | 1.3.2
|
Babel | 2.6.0
|
Genshi | 0.7 (without speedups)
|
Jinja2 | 2.10
|
pysqlite | 2.6.0
|
Python | 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
|
pytz | 2018.4
|
setuptools | 39.2.0
|
SQLite | 3.14.2
|
jQuery | 1.12.4
|
jQuery UI | 1.12.1
|
jQuery Timepicker | 1.6.3
|
Enabled Plugins
timingandestimationplugin | 1.5.9
|
traccustomfieldadmin | 0.2.13
|
tracmastertickets | 4.0.2
|
tracsubticketsplugin | 0.5.3
|
Interface Customization
shared-htdocs | |
shared-templates | |
site-htdocs | malotraccloud3.jpg
|
site-templates |
Python Traceback
Traceback (most recent call last): File "e:\pythonvirtual\trac13\lib\site-packages\trac\web\main.py", line 640, in _dispatch_request dispatcher.dispatch(req) File "e:\pythonvirtual\trac13\lib\site-packages\trac\web\main.py", line 263, in dispatch method=method) File "e:\pythonvirtual\trac13\lib\site-packages\trac\web\chrome.py", line 1418, in render_template fragment, iterable, method) File "e:\pythonvirtual\trac13\lib\site-packages\trac\web\chrome.py", line 1480, in _render_jinja_template iterable) File "e:\pythonvirtual\trac13\lib\site-packages\trac\web\chrome.py", line 1911, in _filter_jinja_page stream = XML(content) File "build\bdist.win-amd64\egg\genshi\input.py", line 275, in XML return Stream(list(XMLParser(StringIO(text)))) File "build\bdist.win-amd64\egg\genshi\core.py", line 289, in _ensure for event in stream: File "build\bdist.win-amd64\egg\genshi\input.py", line 449, in _coalesce for kind, data, pos in chain(stream, [(None, None, None)]): File "build\bdist.win-amd64\egg\genshi\input.py", line 169, in _generate raise ParseError(msg, self.filename, e.lineno, e.offset) ParseError: mismatched tag: line 2135, column 54
Attachments (0)
Change History (6)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Component: | rendering → wiki system |
---|
comment:3 by , 6 years ago
That behavior is introduced in [10905] at source:/tags/trac-1.3.2/trac/wiki/formatter.py@:411#L384. Ideally, we should close and open <p>
tag only when the container is <p>
with the container element.
comment:4 by , 6 years ago
Milestone: | next-dev-1.3.x → 1.0.17 |
---|---|
Owner: | set to |
Status: | new → assigned |
Proposed changes in jomae.git@t13045.
comment:6 by , 6 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Thanks for the reviewing. Committed in [16687] and merged in [16688-16689].
Malformed html is rendered from a list with
TicketQuery(progress)
macro in wiki text. As the result, theParseError
is raised if plugins which implementsITemplateStreamFilter
components are enabled.Trac 1.0/1.2 has the same issue but the
ParseError
is not raised. Wiki text renders aMarkup
instance and Genshi doesn't parse theMarkup
instance as XML.