<div dir="ltr">Hello all,<div><br></div><div>I have just tested a new build of Mapserver 7 (based upon the HEAD of yesterday I think) and the problem is actually fixed.</div><div>Thanks a lot for the quick fix!</div><div><br></div><div>Alexandre</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-26 18:48 GMT+02:00 Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixed by <a href="https://github.com/mapserver/mapserver/issues/4986" target="_blank">https://github.com/mapserver/mapserver/issues/4986</a><br>
<br>
Le jeudi 25 septembre 2014 10:48:53, thomas bonfort a écrit :<br>
<div><div class="h5">> Hi Âlex,<br>
><br>
> I've tried your testcase (or at least the closest I could reproduce)<br>
> in the msautotest/wxs directory with<br>
><br>
> export REQUEST_METHOD=POST<br>
> export QUERY_STRING=map=wfs_filter.map<br>
> echo '<wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"<br>
> service="WFS" version="1.1.0"<br>
> xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br>
> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><wfs:Query<br>
> typeName="popplace" srsName="EPSG:4326"<br>
> xmlns:feature="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"><ogc:Filter<br>
> xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"><ogc:PropertyIsEqualTo<br>
> matchCase="false"><ogc:PropertyName>NAME</ogc:PropertyName><ogc:Literal>foo<br>
> (bar)</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query></wfs:G<br>
> etFeature>'<br>
><br>
> | mapserv<br>
><br>
> and I get back a reasonable result:<br>
><br>
> <?xml version='1.0' encoding="ISO-8859-1" ?><br>
> <wfs:FeatureCollection<br>
>    xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"<br>
>    xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>"<br>
>    xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>"<br>
>    xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"<br>
>    xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
>    xsi:schemaLocation="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a><br>
> <a href="http://localhost/path/to/wfs_simple?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUE" target="_blank">http://localhost/path/to/wfs_simple?SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUE</a><br>
> ST=DescribeFeatureType&amp;TYPENAME=popplace&amp;OUTPUTFORMAT=text/xml;%20s<br>
</div></div>> ubtype=gml/3.1.1 <a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
<span class="im HOEnZb">> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"><br>
>    <gml:boundedBy><br>
>       <gml:Null>missing</gml:Null><br>
>    </gml:boundedBy><br>
> </wfs:FeatureCollection><br>
><br>
><br>
> can you check that your testcase is still failing as there have been<br>
> quite a few recent changes in that part of the code.<br>
><br>
> regards,<br>
> thomas<br>
><br>
> On 5 September 2014 12:50, Alexandre Saunier<br>
><br>
> <<a href="mailto:alexandre.saunier@camptocamp.com">alexandre.saunier@camptocamp.com</a>> wrote:<br>
> > Hi,<br>
> ><br>
> > I am testing the coming Mapserver 7 and have noticed that WFS GetFeature<br>
> > requests crash when using parens in a property value filter. Actually<br>
> > only the opening paren seems to be a problem, not the closing one.<br>
> ><br>
> > For instance:<br>
> ><br>
> > <wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>" service="WFS"<br>
> > version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
> > <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br>
> > xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><wfs:Query<br>
> > typeName="feature:monuments" srsName="EPSG:3857"<br>
> > xmlns:feature="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"><ogc:Filter<br>
> > xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"><ogc:PropertyIsEqualTo<br>
> > matchCase="false"><ogc:PropertyName>nom</ogc:PropertyName><ogc:Literal>fo<br>
</span><span class="im HOEnZb">> > o</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query></wfs:Get<br>
> > Feature><br>
> ><br>
</span><span class="im HOEnZb">> > works as expected, whereas<br>
> ><br>
> > <wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>" service="WFS"<br>
> > version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a><br>
> > <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"<br>
> > xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><wfs:Query<br>
> > typeName="feature:monuments" srsName="EPSG:3857"<br>
> > xmlns:feature="<a href="http://mapserver.gis.umn.edu/mapserver" target="_blank">http://mapserver.gis.umn.edu/mapserver</a>"><ogc:Filter<br>
> > xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"><ogc:PropertyIsEqualTo<br>
> > matchCase="false"><ogc:PropertyName>nom</ogc:PropertyName><ogc:Literal>fo<br>
> > o<br>
</span><span class="im HOEnZb">> > (bar)</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter></wfs:Query></wf<br>
</span><div class="HOEnZb"><div class="h5">> > s:GetFeature><br>
> ><br>
> > returns<br>
> ><br>
> > <ows:ExceptionReport<br>
> > xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" version="1.1.0"<br>
> > xmlns:ows="<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>" language="en-US"<br>
> > xsi:schemaLocation="<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a><br>
> > <a href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd</a>"><br>
> ><br>
> >   <ows:Exception locator="filter" exceptionCode="InvalidParameterValue"><br>
> ><br>
> >     <ows:ExceptionText>msWFSGetFeature(): WFS server error. Wrong number<br>
> >     of<br>
> ><br>
> > filter elements, one filter must be specified for each feature type<br>
> > listed in the TYPENAME parameter.</ows:ExceptionText><br>
> ><br>
> >   </ows:Exception><br>
> ><br>
> > </ows:ExceptionReport><br>
> ><br>
> > Both requests work fine with Mapserver 6.0.1.<br>
> ><br>
> > Is it a known problem with Mapserver 7? No idea if this happens with<br>
> > intermediate Mapserver versions.<br>
> > I have found no issue about that on Mapserver's github.<br>
> ><br>
> > Thanks,<br>
> > Alexandre<br>
> ><br>
> > _______________________________________________<br>
> > mapserver-users mailing list<br>
> > <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> > <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
><br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
</font></span></blockquote></div><br></div>