You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<wfs:GetFeature xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.0.0" maxFeatures="1000" outputFormat="GML2"> <wfs:Query xmlns:tows="http://www.tinyows.org/" typeName="tows:dot.test"> <ogc:PropertyName>tows:nom.dept</ogc:PropertyName><ogc:PropertyName>tows:the_geom</ogc:PropertyName> </wfs:Query></wfs:GetFeature>
<layer ns_prefix="tows"
ns_uri="http://www.tinyows.org/"
retrievable="1"
name="dot.test"
title="dot" />
CREATE TABLE "dot.test" (
gid integer NOT NULL,
"nom.dept" character varying(40),
gmi_cntry character varying(3),
region character varying(25),
the_geom geometry(MultiPolygon,4326)
);
Issue initially reported by Jukka on mailing list.
Could be fixed on Trunk by removing layer prefix PropertyName code:
(but have to be checked that no CITE regression is introduced, by such
a suppression)
diff --git a/src/wfs/wfs_request.c b/src/wfs/wfs_request.c
index d9ce947..05cd000 100644
--- a/src/wfs/wfs_request.c
+++ b/src/wfs/wfs_request.c
@@ -629,7 +629,6 @@ static void wfs_request_check_propertyname(ows * o, wfs_request * wr, list * lay
{
buffer *b;
mlist *f;
- list *fe;
list_node *ln, *ln_tpn;
array *prop_table;
mlist_node *mln = NULL;
@@ -658,25 +657,6 @@ static void wfs_request_check_propertyname(ows * o, wfs_request * wr, list * lay
prop_table = ows_psql_describe_table(o, ln_tpn->value);
for (ln = mln->value->first ; ln ; ln = ln->next) {
- fe = list_explode('.', ln->value);
-
- /*case layer_name.propertyname */
- if (fe->first->next) {
- /*check if propertyname values match typename or fid layer names */
- if (!buffer_cmp(fe->first->value, ln_tpn->value->buf)) {
- list_free(fe);
- mlist_free(f);
- wfs_error(o, wr, WFS_ERROR_NO_MATCHING,
- "propertyname values and typename values don't match", "GetFeature");
- return;
- }
-
- /* keep only the propertyname (without the layer prefixed) */
- buffer_empty(ln->value);
- buffer_copy(ln->value, fe->last->value);
- }
-
- list_free(fe);
/* if propertyname is an Xpath expression */
if (check_regexp(ln->value->buf, "\\*\\["))
The text was updated successfully, but these errors were encountered:
Issue initially reported by Jukka on mailing list.
Could be fixed on Trunk by removing layer prefix PropertyName code:
(but have to be checked that no CITE regression is introduced, by such
a suppression)
The text was updated successfully, but these errors were encountered: