Nhan Vo, I checked the GeoTools copy of the Filter 2.0 schema and it is unchanged since 2011. Perhaps the parser has changed and now ignores the invalid attribute? I do not know.
I tried both your URLs with GeoServer master and neither results in an exception. Both return numberMatched="0" and the logs contain: filter = [ topp:STATE_NAME is like ü* ] filter = [ topp:STATE_NAME is like Ü* ] respectively. What is the encoding used by your platform? I am using UTF-8. If you are not using UTF-8, perhaps GeoServer is making incorrect assumptions about encoding at some point while handling the filter? Kind regards, Ben. On 22/01/16 02:15, Nhan Vo wrote: > Hi Ben, > > Thanks a lot for the detailed reply and the hints. I can confirm that in > my case filter 2.0 was used with version 2.3.5. It is exactly like it is > now and I have just removed matchCase to make it work in version 2.8.1 > according to your explanation. Perhaps someone has modified the schema > in the meantime to make it conform with Filter 2.0 spec? > > Regarding the umlauts, I use URLEncoder.encode() to encode the filter > part and it seems to properly percent-encode the letters. > > Please try the following, which is the working example from you in your > previous email in which I just replace the literal "*" with "ü*" and "Ü*": > > This (with "ü*") works although returning 0 records: > > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=topp:states&filter=%3Cfes:Filter%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%3E%3Cfes:PropertyIsLike%20wildCard=%22*%22%20singleChar=%22%23%22%20escapeChar=%22!%22%3E%3Cfes:ValueReference%3Etopp:STATE_NAME%3C/fes:ValueReference%3E%3Cfes:Literal%3E%C3%BC*%3C/fes:Literal%3E%3C/fes:PropertyIsLike%3E%3C/fes:Filter%3E > > > This (with "Ü*") breaks the XML parsing, and we receive the exception: > > http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=topp:states&filter=%3Cfes:Filter%20xmlns:fes=%22http://www.opengis.net/fes/2.0%22%3E%3Cfes:PropertyIsLike%20wildCard=%22*%22%20singleChar=%22%23%22%20escapeChar=%22!%22%3E%3Cfes:ValueReference%3Etopp:STATE_NAME%3C/fes:ValueReference%3E%3Cfes:Literal%3E%C3%9C*%3C/fes:Literal%3E%3C/fes:PropertyIsLike%3E%3C/fes:Filter%3E > > > I've tried the 2 Urls above with Geoserver 2.8.1. > > Best regards, > Nhan Vo -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ 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
