[Geoserver-devel] [jira] Created: (GEOS-3886) WFS-T update fails with namespace alias that differs from workspace name

WFS-T update fails with namespace alias that differs from workspace name
------------------------------------------------------------------------

                 Key: GEOS-3886
                 URL: http://jira.codehaus.org/browse/GEOS-3886
             Project: GeoServer
          Issue Type: New Feature
          Components: WFS
    Affects Versions: 2.0.0
         Environment: Ubuntu 9.10
            Reporter: Tim Schaub
            Assignee: Andrea Aime

Given a feature type named "buildings" in a workspace named "medford" with the URI of "http://medford.opengeo.org", I can successfully issue a transaction with an update if I use the namespace alias "medford" but not if I use another alias that maps to the same URI.

E.g.

This succeeds:

{code:xml}

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot;
    service="WFS" version="1.1.0"
    xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Update typeName="medford:buildings" xmlns:medford="http://medford.opengeo.org">
        <wfs:Property>
            <wfs:Name>the_geom</wfs:Name>
            <wfs:Value>
                <gml:MultiSurface xmlns:gml="http://www.opengis.net/gml&quot; srsName="EPSG:900913">
                    <gml:surfaceMember>
                        <gml:Polygon>
                            <gml:exterior>
                                <gml:LinearRing>
                                    <gml:posList>-13675354.929529 5212701.307757198 -13675326.265643263 5212687.572978698 -13675323.876986 5212673.838200198 -13675335.820272002 5212653.5346146 -13675362.0955 5212678.615514497 -13675354.929529 5212701.307757198</gml:posList>
                                </gml:LinearRing>
                            </gml:exterior>
                        </gml:Polygon>
                    </gml:surfaceMember>
                </gml:MultiSurface>
            </wfs:Value>
        </wfs:Property>
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
            <ogc:FeatureId fid="buildings.48808"/>
        </ogc:Filter>
    </wfs:Update>
</wfs:Transaction>

{code}

This fails:

{code:xml}

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs&quot;
    service="WFS" version="1.1.0"
    xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd&quot;
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Update typeName="feature:buildings" xmlns:feature="http://medford.opengeo.org">
        <wfs:Property>
            <wfs:Name>the_geom</wfs:Name>
            <wfs:Value>
                <gml:MultiSurface xmlns:gml="http://www.opengis.net/gml&quot; srsName="EPSG:900913">
                    <gml:surfaceMember>
                        <gml:Polygon>
                            <gml:exterior>
                                <gml:LinearRing>
                                    <gml:posList>-13675354.929529 5212701.307757198 -13675326.265643263 5212687.572978698 -13675323.876986 5212673.838200198 -13675335.820272002 5212653.5346146 -13675362.0955 5212678.615514497 -13675354.929529 5212701.307757198</gml:posList>
                                </gml:LinearRing>
                            </gml:exterior>
                        </gml:Polygon>
                    </gml:surfaceMember>
                </gml:MultiSurface>
            </wfs:Value>
        </wfs:Property>
        <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc&quot;&gt;
            <ogc:FeatureId fid="buildings.48808"/>
        </ogc:Filter>
    </wfs:Update>
</wfs:Transaction>

{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