On Wed, Aug 3, 2011 at 9:40 PM, Charles Galpin <[email protected]> wrote: > I have a OWS/WFS query to a sql view based layer that works fine on a 2.1-RC2 > system but not on a 2.1.1 system which was setup using the same layer config > copied over from the 2.1-RC2 system. I have no idea if the version is an > issue other than this is the only difference I can tell. > > I don't understand this error. My view has 3 params and all 3 are being > provided (and have defaults). The validation regular expression is "^[\d,]+$" > and if I send "123" for one of the params (happens to be the last listed in > the viewparams it works as expected, but if I send "123,456" I get this > error. If I send "123,456,789" The error changes to "1 feature types > requested, but found 3 view params specified. ". This works fine on the > 2.1-RC2 system though.
This is the result of a recent user contribution allowing to specify multiple view parameter sets, one for each layer in the request. This makes the comma be a separator, and as such if you need to use it you have to escape it. Use 123\,456\,789 instead Btw, the user guide has been updated accordingly, I guess you haven't noticed/checked: http://docs.geoserver.org/latest/en/user/data/sqlview.html --- The viewparams can be also specified on a layer per layer basis using the syntax viewparams=l1p1:v1;l1p2:v2,l2p1:v1;l2p2:v2,..., that is, separating each layer map with a comma. In this case the number of parameter maps must match the number of layers (or feature types) included in the request. --- Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
