Filter crashes

Description

The following filter does not work , although it is take verbatim from Filter Encoding Implementation Specs. The BBOX call works though

FILTER=<Filter><BBOX><PropertyName>Geometry</PropertyName><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><gml:coordinates>-72,45 -71,46</gml:coordinates></gml:Box></BBOX></Filter>

result :

<?xml version="1.0" ?>

  • <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://s5-stf-ngwd:8080/geoserver/data/capabilities/wfs/1.0.0/OGC-exception.xsd - http://s5-stf-ngwd:8080/geoserver/data/capabilities/wfs/1.0.0/OGC-exception.xsd">
    <ServiceException locator="org.vfny.geoserver.requests.readers.XmlRequestReader">XML getFeature request SAX parsing error: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:431) at org.vfny.geoserver.requests.readers.XmlRequestReader.readFilter(XmlRequestReader.java:71) at org.vfny.geoserver.requests.readers.KvpRequestReader.readFilters(KvpRequestReader.java:301) at org.vfny.geoserver.requests.readers.wfs.GetFeatureKvpReader.getRequest(GetFeatureKvpReader.java:111) at org.vfny.geoserver.requests.readers.wfs.GetFeatureKvpReader.getRequest(GetFeatureKvpReader.java:46) at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:184) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.vfny.geoserver.servlets.wfs.WfsDispatcher.doResponse(WfsDispatcher.java:159) at org.vfny.geoserver.servlets.wfs.WfsDispatcher.doGet(WfsDispatcher.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666) at java.lang.Thread.run(Thread.java:534)</ServiceException>
    </ServiceExceptionReport>

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:44 PM

CodeHaus Comment From: cholmes - Time: Mon, 23 Feb 2004 12:18:43 -0600
---------------------
<p>That error is indicating that the xml coming in is not well formed. Looking at the request I think the problem is that you seem to throw some xml encoding (&lt in with the non xml encoded &lt; and &gt;'s. This will not work for a get request, the url encoding of those characters is a bit different. But if you just enter them normally your browser should take care of the encoding. So try it again without the xml encoding, and it should work. I've had other people get this type of request working.</p>

codehaus
April 10, 2015, 4:44 PM

CodeHaus Comment From: cholmes - Time: Mon, 23 Feb 2004 12:19:44 -0600
---------------------
<p>As far as I can tell this is just encoded wrong. If that's not the case then reopen the issue, but I'm pretty postive I've had other developers working with this type of request before.</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure