AntiSamy

From Arnout Engelen

Jump to: navigation, search
  • the 1.1 jar was built without line number information. That's annoying ;).

[edit] Gotchas

Caused by: java.lang.UnsupportedOperationException
	at com.caucho.xml.QAbstractNode.getTextContent(QAbstractNode.java:301)
	at org.owasp.validator.html.Policy.parseTagRules(Unknown Source)
	at org.owasp.validator.html.Policy.<init>(Unknown Source)
	at org.owasp.validator.html.Policy.getInstance(Unknown Source)
	at nl.topicus.patientportaal.web.InputSanitationUtil.sanitize(InputSanitationUtil.java:15)
	at nl.topicus.patientportaal.model.modules.algemeen.Mededeling.getInhoudAsHtml(Mededeling.java:183)
	at nl.topicus.patientportaal.patienten.mijnPortaal.PortaalView$5.populateItem(PortaalView.java:364)
	at wicket.markup.html.list.ListView.internalOnAttach(ListView.java:578)
	at wicket.Component.internalAttach(Component.java:2572)
	at wicket.MarkupContainer.internalAttach(MarkupContainer.java:341)

Can be fixed by specifying the XML documentbuilder to use:

System.setProperty("javax.xml.parsers.DocumentBuilderFactory", "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
Personal tools