Ticket #135 (reopened defect)
Unicorn improperly handling "&" in URI
|Reported by:||anonymous||Owned by:|
If I try to validate a web page with an "&" in the URI it tells me "A critical error has occured. Below is a stack trace from Unicorn, please copy and submit in a bug report to help us solve the problem." I was able to make it validate my pages by simply replacing the "&" with "%26" in the text input box, but some people (like me next time it happens) might not know how to do this (or they/I might just not think of it).
and here's the stack trace it gave me, in case it will help.
class org.apache.xmlbeans.XmlException error: Reference to undefined entity: nbsp org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1276) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1263) org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) org.w3.x2009.x10.unicorn.observationresponse.ObservationresponseDocument$Factory.parse(Unknown Source) org.w3c.unicorn.response.impl.DefaultResponseXBeans.<init>(DefaultResponseXBeans.java:60) sun.reflect.GeneratedConstructorAccessor22.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) org.w3c.unicorn.response.ResponseFactory.getResponse(ResponseFactory.java:24) org.w3c.unicorn.request.URIRequest.doRequest(URIRequest.java:141) org.w3c.unicorn.RequestThread.run(RequestThread.java:66)
Also going to the individual validators for HTML and CSS seems to work fine using "&" in the URI. Hope you fix this small bug, and thanks for making such a useful tool.
P.S. Also a very minor mistake is present in the error message, it says "A critical error has occured. …" but the proper spelling is "occurred". not a big deal at all (only noticed it because Firefox told me I had misspelled it and I was like … wait …)