geosolutions-it / inspire-issues

This repository works as an aggregator for GeoServer known issues with respect to INSPIRE compliance and support.
https://waffle.io/geosolutions-it/inspire-issues
0 stars 0 forks source link

NULL namespace prefixes used in AppSchema WFS GetFeature responses #6

Closed simboss closed 6 years ago

simboss commented 6 years ago

The GML response of a WFS GetFeature request hitting more than one App-Schema complex feature type:

<?xml version="1.0" encoding="UTF-8"?> <GetFeature version="2.0.0" (...)>

Measurement_gml32/@gml:id ms.1
<Query typeNames="wk_st_0_gml32:Station_gml32">
     <Filter xmlns="http://www.opengis.net/fes/2.0" xmlns:ps="http://inspire.ec.europa.eu/schemas/ps/4.0" xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3">
          <PropertyIsEqualTo>
            <ValueReference>Station_gml32/@gml:id</ValueReference>
            <Literal>st.1</Literal>
          </PropertyIsEqualTo>
      </Filter>
</Query>

... Will use a NULL namespace prefix in all returned features:

<?xml version="1.0" encoding="UTF-8" ?> <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" numberMatched="unknown" numberReturned="4" timeStamp="2018-05-07T09:55:30.106Z" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://localhost:8080/geoserver/schemas/wfs/2.0/wfs.xsd http://www.stations_gml32.org/1.0 file:/Users/ior/gs_null_prefix_test/geoserver-2.13.0/data_dir/data/USE_CASE_0_STATIONS_GML32/stations_gml32.xsd http://www.opengis.net/gml/3.2 http://localhost:8080/geoserver/schemas/gml/3.2.1/gml.xsd http://www.measurements_gml32.org/1.0 file:/Users/ior/gs_null_prefix_test/geoserver-2.13.0/data_dir/data/USE_CASE_0_MEASUREMENTS_GML32/measurements_gml32.xsd")>

temperature station1 1 -1 wind
nmco commented 6 years ago

Associated pull requests:

fernandor777 commented 4 years ago

JIRA ticket: https://osgeo-org.atlassian.net/browse/GEOS-8799