On Aug 4, 2011, at 3:38 AM, Andrea Aime wrote: > 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
Thanks so much. Boy this had me stumped, but I did not think to check that this could have changed. It was a easy fix knowing this though :) Is a new release expected anytime soon? I'm guessing this is not backward compatible to the RC2 and if I go updating things, I'd like to get them all in sync again so a single code base works across them all but will hold off if something is coming soon. > > 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. > --- No I had not looked, sorry. To make up for it, I will submit some edits to this (a few typos and a note about escaping commas and semicolons in the values) as soon as I get my env setup properly. I got partially setup over my vacation but never finished and the apple developer tools (to get make) seem to be taking an inordinate amount of time to install. But to be honest I don't really understand the enhancement. Can you explain how to take advantage of it? I'll update the docs accordingly for it as well. Thanks again, charles ------------------------------------------------------------------------------ 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
