-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Products.PageTemplates (with chameleon): improper handling of (some) syntax errors #710
Comments
@d-maurer Should this be fixed here in the Zope package or in |
Michael Howitz wrote at 2019-10-11 06:36 -0700:
@d-maurer Should this be fixed here in the Zope package or in `zope.pagetemplate` as the traceback seems to point to?
I do not yet know: have not yet found time to analyse in detail.
During the initial analysis, I observed that something was missing
a "visit_error" but I forgot to note which type of object this was.
Do not give the traceback too much importance: it describes
a followup problem; the primary problem (the syntax error) does not
give a traceback - but simply ignores the tag (which of course
destroys the XML structure and lead to the followup problem).
|
The error is actually in Searching github (a few minutes ago) for A few days ago, I hit another
and rendering gave a |
The primary error is actually a missing |
Dieter, was this fixed as part of Chameleon 3.7.0? |
Jens Vagelpohl wrote at 2020-3-31 01:30 -0700:
Dieter, was this fixed as part of Chameleon 3.7.0?
I do not think so.
I filed "malthe/chameleon#298"
for this issue -- and it got the label "feature".
No sign about work on it.
|
FYI, this is still unfixed with Chameleon 3.8.1 |
The bug is not yet fixed in |
Some syntax errors are badly handled as the following transscript demonstrates:
The trailing
\
in the start tag of the outerdiv
is clearly a syntax error. However, it is not flagged out as such. Instead the malformed start tag is silently ignored causing an error when the corresponding end tag is eventually reached. In more complex examples, the error may be reported even later which can make the analysis of the problem very expensive.An initial analysis revealed: the syntax error is properly recognized by the "chameleon" parser. It tries to report it by calling a "visit" function with category "error". This tries to look up
visit_error
and finds it undefined. Therefore, it uses a default handling which ignores the tag.The text was updated successfully, but these errors were encountered: