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

Sergio created BugGEOS-5297
could not parse cql filter list encountered u&

Issue Type:

BugBug

Affects Versions:

2.1.3

Assignee:

Andrea Aime

Attachments:

cql_flter_ServiceException.log

Components:

REST

Created:

05/Sep/12 9:29 AM

Description:

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

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:
http://jira.codehaus.org/browse/GEOS-4177

How can we get a solution to this problem?

Thank you in advance.

Kind regards.

Environment:

Centos

Project:

GeoServer

Labels:

exception

Priority:

MajorMajor

Reporter:

Sergio

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)