SEC-1518: Tag library parsing error. #1739

Closed
spring-issuemaster opened this Issue Jul 14, 2010 · 1 comment

1 participant

@spring-issuemaster

Dzmitry Barouka (Migrated from SEC-1518) said:

I have error after application start under Resin:

Caused by: jar:file:/home/odenemby/www/odenem.by/WEB-INF/lib/spring-security-taglibs-3.0.3.RELEASE.jar!/META-INF/security.tld:113: <description> is an unexpected tag (parent <attribute> starts at 112).

111:         </attribute>
112:         <attribute>
113:             <description>Set HTML escaping for this tag, as a boolean value.</description>
114:             <name>htmlEscape</name>
115:             <required>false</required>

 Check for duplicate and out-of-order tags.

<name> is expected.

<attribute> syntax: (<name>, <required>?, <rtexprvalue>?, <type>?, <description>?)
    at com.caucho.xml.DOMBuilder.error(DOMBuilder.java:604)
    at com.caucho.xml.DOMBuilder.error(DOMBuilder.java:576)
    at com.caucho.relaxng.VerifierImpl.error(VerifierImpl.java:73)
    at com.caucho.relaxng.VerifierHandlerImpl.error(VerifierHandlerImpl.java:378)
    at com.caucho.relaxng.VerifierHandlerImpl.error(VerifierHandlerImpl.java:392)
    at com.caucho.relaxng.VerifierHandlerImpl.startElement(VerifierHandlerImpl.java:249)
    at com.caucho.relaxng.VerifierFilter.startElement(VerifierFilter.java:131)
    at com.caucho.xml.XmlParser.addElement(XmlParser.java:2615)
    at com.caucho.xml.XmlParser.parseElement(XmlParser.java:663)
    at com.caucho.xml.XmlParser.parseNode(XmlParser.java:381)
    at com.caucho.xml.XmlParser.parseInt(XmlParser.java:256)
    at com.caucho.xml.AbstractParser.parse(AbstractParser.java:644)
    at com.caucho.relaxng.VerifierFilter.parse(VerifierFilter.java:80)
    at com.caucho.config.Config.parseDocument(Config.java:385)
    at com.caucho.config.Config.configure(Config.java:205)
    at com.caucho.jsp.TldManager.parseTldPreload(TldManager.java:733)
    at com.caucho.jsp.TldManager.parseTldPreload(TldManager.java:685)
    at com.caucho.jsp.TldManager.loadJarTlds(TldManager.java:444)
    ... 93 more

If modify security.tld (put tag after tag ) than there is no this error.
Сould you please change these tags places. There is no big effort.

Thanks

@spring-issuemaster

Luke Taylor said:

Thanks for spotting this. We should probably switch to using an xsd at some point, but I've corrected the order for now.

@spring-issuemaster spring-issuemaster added this to the 3.1.0.M1 milestone Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment