Hi,

Thanks for the response. This URL works:
http://192.168.0.102:8081/geoserver/wfs?VERSION=2.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=topp:states&FILTER=%3Cfes:Filter%20xmlns:fes='http://www.opengis.net/fes/2.0'%20xmlns:gml='http://www.opengis.net/gml/3.2'%3E%3Cfes:PropertyIsLike%20matchCase='false'%20wildCard='*'%20singleChar='%'%20escapeChar='!'%3E%3Cfes:ValueReference%3Etopp:STATE_NAME%3C/fes:ValueReference%3E%3Cfes:Literal%3E*%3C/fes:Literal%3E%3C/fes:PropertyIsLike%3E%3C/fes:Filter%3E


This does not work:
http://192.168.0.102:8081/geoserver/wfs?VERSION=2.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=topp:states&FILTER=%3Cfes:Filter%20xmlns:fes='http://www.opengis.net/fes/2.0'%20xmlns:gml='http://www.opengis.net/gml/3.2'%3E%3Cfes:PropertyIsLike%20matchCase='false'%20wildCard='*'%20singleChar='#'%20escapeChar='!'%3E%3Cfes:ValueReference%3Etopp:STATE_NAME%3C/fes:ValueReference%3E%3Cfes:Literal%3E*%3C/fes:Literal%3E%3C/fes:PropertyIsLike%3E%3C/fes:Filter%3E

The only difference is /*singleChar='%'*/ and /*singleChar='#'*/.

Best regards,
Nhan Vo

On 1/20/2016 1:53 PM, Rahkonen Jukka (MML) wrote:

Hi,

Can you reproduce the issue with the demo layer ”states”? If you can, please send the whole GET url for making testing convenient for the others.

Regards,

-Jukka Rahkonen-

Nhan Vo wrote:

Hi list,

I'm upgrading Geoserver from 2.3.5 to 2.8.1 and my client code cannot work anymore. Basically it sends a WFS Url request with a filter to Geoserver. The filter looks as follows:

<fes:Filter xmlns:fes='http://www.opengis.net/fes/2.0' xmlns:gml='http://www.opengis.net/gml/3.2'> <fes:PropertyIsLike matchCase='false' wildCard='*' singleChar='#' escapeChar='!'>
<fes:ValueReference>...</fes:ValueReference>
        <fes:Literal>...</fes:Literal>
    </fes:PropertyIsLike>
</fes:Filter>

With version 2.8.1 I receive the exception message:*XML document structures must start and end within the same entity*

I have been able to get around this by replacing */singleChar='#'/* with */singleChar='%'/*, but still cannot understand why the '#' causes the problem. Also, '.' and '_' do not work either and I receive the same exception message. Only '%' works.

Btw, Geoserver 2.3.5 was running with Java 6; when I updated to 2.8.1 I also updated to Java 8.

If someone could shed some light on this I'd appreciate it.

Best regards,
Nhan Vo




--


*Thanh-Trong-Nhan Vo*


smile consult GmbH
Vahrenwalder Straße 4
D-30165 Hannover

        




Tel:

        

0511/543617-46

Fax:

        

0511/543617-66

Mail:

        

[email protected] <mailto:[email protected]>

Internet:

        

http://www.smileconsult.de <http://www.smileconsult.de/>


Geschäftsführer: Frank Sellerhoff •Peter Milbradt •Christoph Lippert
USt-IdNr.: DE208857046 •Amtsgericht Hannover HRB 58707

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to