Hello, I have a problem with filtering a layer, when filter value contains a single quote (which I replace with two single quotes - according to a specification: https://docs.geoserver.org/stable/en/user/filter/ecql_reference.html#ecql-literal). Values are filtered correctly when there are some results. If the result should be empty layer - I get following exception in the response:
<?xml version="1.0" encoding="UTF-8"?><ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc https://abbvie-ows.omnilocation-iot.com/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd"> <ServiceException> Could not parse CQL filter list. Encountered "ongnam" at line 1, column 115. Was expecting one of: "and" ... "or" ... ")" ... "/" ... "*" ... "+" ... "-" ... Parsing : (1 = 1) AND (1 = 1 AND (region = 'JAPAC') AND (country = 'South Korea') AND (state = 'Chungcheongnamdo [Ch''ungch'ongnam-do]')). </ServiceException></ServiceExceptionReport> And here is a request that I send: https://abbvie-ows.omnilocation-iot.com/geoserver/abbvie/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=asset_site&TILED=true&CQL_FILTER=(1%20%3D%201)%20AND%20(1%20%3D%201%20AND%20(region%20%3D%20%27JAPAC%27)%20AND%20(country%20%3D%20%27South%20Korea%27)%20AND%20(state%20%3D%20%27Chungcheongnamdo%20%5BCh%27%27ungch%27ongnam-do%5D%27))&TIME_=1583319334693&viewparams=&WIDTH=512&HEIGHT=512&CRS=EPSG%3A3857&STYLES=&BBOX=10018754.17139462%2C5009377.085697312%2C15028131.257091932%2C10018754.171394624 If there is at least one result (on the whole layer), I get a correct image as a response. Here is a sample request that works fine: https://abbvie-ows.omnilocation-iot.com/geoserver/abbvie/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=asset_site&TILED=true&CQL_FILTER=(1%20%3D%201)%20AND%20(1%20%3D%201%20AND%20(region%20%3D%20%27JAPAC%27)%20AND%20(country%20%3D%20%27South%20Korea%27)%20AND%20(state%20%3D%20%27Daegu%20Gwang%27%27yeogsi%20%5BTaegu-Kwangyokshi%5D%27))&TIME_=1583320599330&viewparams=&WIDTH=512&HEIGHT=512&CRS=EPSG%3A3857&STYLES=&BBOX=10018754.17139462%2C0%2C15028131.257091932%2C5009377.085697311 Any ideas, how could I configure my filter, so it works in all cases? Best Regards Martyna Kolaczek DXC Technology Company -- This message is transmitted to you by or on behalf of DXC Technology Company or one of its affiliates. It is intended exclusively for the addressee. The substance of this message, along with any attachments, may contain proprietary, confidential or privileged information or information that is otherwise legally exempt from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate any part of this message. If you have received this message in error, please destroy and delete all copies and notify the sender by return e-mail. Regardless of content, this e-mail shall not operate to bind DXC Technology Company or any of its affiliates to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. --.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
