[Geoserver-devel] [jira] Created: (GEOS-3306) Support NAMESPACE parameter in WFS 1.1.0 KVP requests

Support NAMESPACE parameter in WFS 1.1.0 KVP requests
-----------------------------------------------------

                 Key: GEOS-3306
                 URL: http://jira.codehaus.org/browse/GEOS-3306
             Project: GeoServer
          Issue Type: Bug
          Components: WFS
    Affects Versions: 1.7.5
            Reporter: Tim Schaub
            Assignee: Andrea Aime

Page 96 of the WFS 1.1.0 spec describes the NAMESPACE parameter as an optional parameter common to WFS requests.

It looks to me like the following should work:

{noformat}
GET /geoserver/wfs?version=1.1.0&request=DescribeFeatureType&typename=foo:archsites&namespace=xmlns(foo%3Dhttp%3A%2F%2Fwww.openplans.org%2Fspearfish)
{noformat}

(though the WFS doc doesn't specify that the = should be properly encoded)

With GeoServer 1.7.5, this is what I get:

{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:ows="http://www.opengis.net/ows&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>Unknown namespace [foo]</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

     [ http://jira.codehaus.org/browse/GEOS-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriel Roldán reopened GEOS-3306:
----------------------------------

catching up on this one. Reopening until it doesn't break anything

Support NAMESPACE parameter in WFS 1.1.0 KVP requests
-----------------------------------------------------

                Key: GEOS-3306
                URL: http://jira.codehaus.org/browse/GEOS-3306
            Project: GeoServer
         Issue Type: Bug
         Components: WFS
   Affects Versions: 1.7.5
           Reporter: Tim Schaub
           Assignee: Gabriel Roldán
            Fix For: 2.0.x, 2.1.x

        Attachments: GEOS-3306.patch

Page 96 of the WFS 1.1.0 spec describes the NAMESPACE parameter as an optional parameter common to WFS requests.
It looks to me like the following should work:
{noformat}
GET /geoserver/wfs?version=1.1.0&request=DescribeFeatureType&typename=foo:archsites&namespace=xmlns(foo%3Dhttp%3A%2F%2Fwww.openplans.org%2Fspearfish)
{noformat}
(though the WFS doc doesn't specify that the = should be properly encoded)
With GeoServer 1.7.5, this is what I get:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd&quot;
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:ows="http://www.opengis.net/ows&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>Unknown namespace [foo]</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira