Opened 16 years ago
Closed 16 years ago
#108 closed defect (fixed)
Null bytes appended to search string
Reported by: | chrisheyne | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | v2.4.0 RC2 |
Component: | General | Version: | v2.4.0 RC1 |
Keywords: | Cc: |
Description
Entering data into the 'Where?' field of the simple or advanced metadata search results in an error. It appears that null bytes are being appended to the search criteria.
http://localhost:8080/geonetwork/srv/en/main.search.embedded?any=road&sortBy=relevance&hitsPerPage=10&output=full%20HTTP/1.1
To reproduce:
Enter text into the 'What?' field on the search page, click 'search'
Full text of the error response (the same message is also written to the log):
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 500 The data "The data " road������" is not legal for a JDOM character content: 0x0 is not a legal XML character." is not legal for a JDOM character content: 0x0 is not a legal XML character.</title> </head> <body><h2>HTTP ERROR: 500</h2><pre>The data "The data " road������" is not legal for a JDOM character content: 0x0 is not a legal XML character." is not legal for a JDOM character content: 0x0 is not a legal XML character.</pre> <p>RequestURI=/geonetwork/srv/en/main.search.embedded</p><h3>Caused by:</h3><pre>org.jdom.IllegalDataException: The data "The data " road������" is not legal for a JDOM character content: 0x0 is not a legal XML character." is not legal for a JDOM character content: 0x0 is not a legal XML character. at org.jdom.Text.setText(Text.java:188) at org.jdom.Text.<init>(Text.java:99) at org.jdom.Element.setText(Element.java:630) at jeeves.exceptions.JeevesException.toElement(JeevesException.java:82) at jeeves.server.dispatchers.ServiceManager.getError(ServiceManager.java:789) at jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:421) at jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:410) at jeeves.server.JeevesEngine.dispatch(JeevesEngine.java:621) at jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:174) at jeeves.server.sources.http.JeevesServlet.doGet(JeevesServlet.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) </pre> <p><i><small><a href="http://jetty.mortbay.org/">Powered by Jetty://</a></small></i></p><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> </body> </html>
Note:
See TracTickets
for help on using tickets.