[Geoserver-devel] [jira] Created: (GEOS-4111) specifying an empty CQL_FILTER parameter generates an error

specifying an empty CQL_FILTER parameter generates an error
-----------------------------------------------------------

                 Key: GEOS-4111
                 URL: http://jira.codehaus.org/browse/GEOS-4111
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.0.2, 2.0.1, 2.0.0
         Environment: Ubuntu 10.04 LTS, Sun Java 6.20, Jetty
            Reporter: BartV
            Assignee: Andrea Aime
            Priority: Minor

Example request:

http://localhost:8080/geoserver/wms?HEIGHT=330&WIDTH=684&LAYERS=World:worldcountries&STYLES=&SRS=EPSG:4326&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application/vnd.ogc.se_inimage&BBOX=-240.468752563,-119.20382800698,240.46876782179,112.82743182778&CQL_FILTER=

Will generate this error:
"Could not parse CQL filter list. Encountered "<EOF>" at line 0, column 0..."

Note the emtpy CQL_FILTER parameter at the end.
If you leave the parameter out, everything is fine.

The problem occurs when you want to use GeoWebCache with a regexParameterFilter on the CQL_FILTER and one queries a layer without a CQL_FILTER. Example "geowebcache.xml" file:

<wmsLayer>
  <name>worldcountries_gwc</name>
  <wmsUrl><string>http://localhost:8080/geoserver/wms&lt;/string&gt;&lt;/wmsUrl&gt;
  <wmsLayers>World:worldcountries</wmsLayers>
  <parameterFilters>
    <regexParameterFilter>
      <key>CQL_FILTER</key>
      <defaultValue></defaultValue>
      <regex>^(.+)$</regex>
    </regexParameterFilter>
  </parameterFilters>
</wmsLayer>

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira