Hi Mauro, Which previous version did you see this work in. While I do agree that this case could be a bit more lenient, but when dealing with invalid requests you are on shaky ground. If GeoServer was operating in strict mode it would throw a validation exception on this request. The best way (if possible) would be just to be include the ogc prefix.
However, if this did work in a previous version feel free to file a regression issue in the tracker for it. -Justin Mauro Bartolomeoli wrote: > I have a problem with a WFS GetFeature request: > > <GetFeature service="WFS" version="1.0.0" outputFormat="GML2" > xmlns:gml="http://www.opengis.net/gml" > xmlns="http://www.opengis.net/wfs" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" > xmlns:ogc="http://www.opengis.net/ogc"> > <Query xmlns:jesi20="http://www.esalab.it/jesi20" > typeName="jesi20:CATPARTICELLE"> > <PropertyName>CHCATPARTICELLE</PropertyName> > <PropertyName>GEOMETRY</PropertyName> > <Filter> > <PropertyIsEqualTo> > <PropertyName>CHCATPARTICELLE</PropertyName> > <Literal>E388337108002</Literal> > </PropertyIsEqualTo> > </Filter> > </Query> > </GetFeature> > > > The problem is that the <PropertyName> tag in the Filter is parsed as a > Literal, not as a PropertyName. > Everything is parsed correctly if I change the request to: > > <GetFeature service="WFS" version="1.0.0" outputFormat="GML2" > xmlns:gml="http://www.opengis.net/gml" > xmlns="http://www.opengis.net/wfs" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd" > xmlns:ogc="http://www.opengis.net/ogc"> > <Query xmlns:jesi20="http://www.esalab.it/jesi20" > typeName="jesi20:CATPARTICELLE"> > <PropertyName>CHCATPARTICELLE</PropertyName> > <PropertyName>GEOMETRY</PropertyName> > <Filter> > <PropertyIsEqualTo> > <ogc:PropertyName>CHCATPARTICELLE</ogc:PropertyName> > <Literal>E388337108002</Literal> > </PropertyIsEqualTo> > </Filter> > </Query> > </GetFeature> > > adding the ogc namespace prefix to PropertyName. > Is this a bug? Where can I look in the code to try to fix it? > > Thanks, > Mauro Bartolomeoli > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Geoserver-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-devel > > !DSPAM:4007,4860e3ee308361015089218! > -- Justin Deoliveira The Open Planning Project [EMAIL PROTECTED] ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
