Uploaded image for project: 'GeoServer'
  1. GEOS-8651

Stored query creation fails when using namespace prefixes local to the stored query definition

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.13.1, 2.14-RC
    • Component/s: WFS
    • Labels:

      Description

      A request like this one, using a "ns42" local prefix, fails to be created:

      <CreateStoredQuery xmlns="http://www.opengis.net/wfs/2.0" service="WFS" version="2.0.0">
        <StoredQueryDefinition xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                id="urn:example:wfs2-query:GetFeatureByName">
            <Title>GetFeatureByName</Title>
            <Abstract>Returns feature representations by name. The name value must occur in a gml:name property.</Abstract>
            <Parameter name="name" type="xsd:string">
               <Abstract>Name of feature instance (required)</Abstract>
            </Parameter>
            <QueryExpressionText xmlns:fes="http://www.opengis.net/fes/2.0"
                                 xmlns:gml="http://www.opengis.net/gml/3.2"
                                 xmlns:ns42="http://cite.opengeospatial.org/gmlsf"
                                 isPrivate="false"
                                 language="urn:ogc:def:queryLanguage:OGC-WFS::WFSQueryExpression"
                                 returnFeatureTypes="ns42:EntitéGénérique">
               <Query typeNames="ns42:EntitéGénérique">
                  <fes:Filter>
                     <fes:PropertyIsLike escapeChar="\" singleChar="?" wildCard="*">
                        <fes:ValueReference>gml:name</fes:ValueReference>
                        <fes:Literal>*${name}*</fes:Literal>
                     </fes:PropertyIsLike>
                  </fes:Filter>
               </Query>
            </QueryExpressionText>
        </StoredQueryDefinition>
      </CreateStoredQuery>
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                aaime Andrea Aime
                Reporter:
                aaime Andrea Aime
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: