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</string></wmsUrl>
  <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

        

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to