[jira] (GEOS-5297) could not parse cql filter list encountered u&

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] (GEOS-5297) could not parse cql filter list encountered u&

JIRA jira@codehaus.org
Sergio created Bug GEOS-5297
Issue Type: Bug Bug
Affects Versions: 2.1.3
Assignee: Andrea Aime
Attachments: cql_flter_ServiceException.log
Components: REST
Created: 05/Sep/12 9:29 AM

We have installed Geoserver 2.1.8, Postgres 8.4.1,
and we are sending a GetMap HTTP request to GeoServer:

<a href="http://localhost:8080/geoserver/wms/?LAYERS=sir%3Alimites_municipales_palma&amp;TRANSPARENT=true&amp;SRS=EPSG%3A32628&amp;FORMAT=image%2Fpng&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;CQL_FILTER=u&amp;&#39;Garaf00EDa&#39;&amp;BBOX=178411.8228552,3139282.9938475,261633.4599431,3206835.2850402&amp;WIDTH=1195&amp;HEIGHT=970">http://localhost:8080/geoserver/wms/?LAYERS=sir%3Alimites_municipales_palma&TRANSPARENT=true&SRS=EPSG%3A32628&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&CQL_FILTER=u&'Garaf\00EDa'&BBOX=178411.8228552,3139282.9938475,261633.4599431,3206835.2850402&WIDTH=1195&HEIGHT=970

The problem is that the cql_filter parameter has an special character:
CQL_FILTER=etiqueta like u&'Garaf\00EDa'

As a result Geoserver throws the Exception you can see in the attached file:
Could not parse CQL filter list
Caused by: org.geotools.filter.text.cql2.CQLException: Encountered "like u" at line 1, column 10.

standard_conforming_string is on in postgres.
If we execute the same query in postgres it returns a valid result.

select * from "limites_municipales" where etiqueta like u&'Garaf\00EDa';

This issue is similar to the one solved in 4177:

How can we get a solution to this problem?

Thank you in advance.

Kind regards.

Environment: Centos
Project: GeoServer
Labels: exception
Priority: Major Major
Reporter: Sergio
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Geoserver-devel mailing list
[hidden email]