[Geoserver-users] Problem with filter in getFeature request (geoserver 1.6.0)

Hello,

When executing the following request i get a service exception

request:

http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.0.0&typeName=Ind_Atlasbladen&outputFormat=json&filter=(WIJKCODE1</Filter

exception:

<?xml version="1.0" ?>

**org.xml.sax.SAXParseException: Content is not allowed in prolog. Content is not allowed in prolog.**

I tried to put a xml header in the filter definition (something like <?xml version='1.0' encoding='UTF-8'?>) but that doesnt help.

In geoserver 1.5.4 this worked well

Anybody knows a solution to this xml parsing problem?

Thanks in advance

Greetings Kris
any

De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:

http://www.denhaag.nl/disclaimer

Hi Kris,

I think if you remove the parentheses around the xml it will work. However this seems to be a bug. The parentheses should be stripped off as delimiters and that does not appear to happen in this case. Creating a jira for it:

http://jira.codehaus.org/browse/GEOS-1745

-Justin

K Geusebroek wrote:

Hello,
When executing the following request i get a service exception
request:
http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.0.0&typeName=Ind_Atlasbladen&outputFormat=json&filter=(<Filter><PropertyIsEqualTo><PropertyName>WIJKCODE</PropertyName><Literal>1</Literal></PropertyIsEqualTo></Filter <http://localhost:8080/geoserver/wfs?request=GetFeature&version=1.0.0&typeName=Ind_Atlasbladen&outputFormat=json&filter=(&lt;Filter&gt;&lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;WIJKCODE&lt;/PropertyName&gt;&lt;Literal&gt;1&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;&lt;/Filter&gt;&gt;\)
exception:
* * <?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://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd*&quot;&gt;
* * <ServiceException locator="*org.vfny.geoserver.util.requests.readers.XmlRequestReader*">
* org.xml.sax.SAXParseException: Content is not allowed in prolog. Content is not allowed in prolog.*
* *</ServiceException>
* * </ServiceExceptionReport>
I tried to put a xml header in the filter definition (something like <?xml version='1.0' encoding='UTF-8'?>) but that doesnt help.
In geoserver 1.5.4 this worked well
Anybody knows a solution to this xml parsing problem?
Thanks in advance
Greetings Kris
any

De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:

http://www.denhaag.nl/disclaimer

!DSPAM:4007,47b2edba8222092453641!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

!DSPAM:4007,47b2edba8222092453641!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,47b2edba8222092453641!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com