Closed smancini closed 11 years ago
An exception is being returned for the GetMap request including L'Astrolabe as follows:
Could not parse CQL filter list. Encountered "Astrolabe" at line 1, column 22. Was expecting one of:
Looks like the apostrophe needs to be escaped
Does CQL allow single quotes to be escaped with other single quotes?
No, but it looks like they can be escaped by enclosing them in "" and \" used within these to escape " itself Just testing before making changes...
Actually single quoting IS the correct method. From the GeoServer manual:
String String literal delimited by single quotes. To include a single quote in the string use two single-quotes: ''
retested and this works, so I'll change the filter code to escape accordingly.
I did a test of the WFS scanner on the release candidate portal.
I performed my test on the "SST - All tracks" layer (name: soop_sst_mv). I have enabled the filter "vessel_name" for that particular layer.
On the portal, it is possible to filter the layer for most of the vessels (e.g Stadacona ...) The filter is not working when you select the french vessel L'Astrolabe. The problem is that no tracks are displayed on the map when you select this vessel. the presence of the apostrophe in the vessel name is probably causing a problem to the CQL filter.
On the production portal, I manually configured the filter by entering the vessel name Astrolabe without the apostrophe and the filter was working fine.