[Geoserver-devel] [jira] Created: (GEOS-927) Incorrect handling of period's in <PropertyName>

Incorrect handling of period's in <PropertyName>
------------------------------------------------

                 Key: GEOS-927
                 URL: http://jira.codehaus.org/browse/GEOS-927
             Project: GeoServer
          Issue Type: Bug
          Components: ArcSDE, WFS
    Affects Versions: 1.4.1, 1.4.0
         Environment: RHEL4 / Win2003 / Tomcat 5x (All available environments)
            Reporter: Chris Tweedie
         Assigned To: Andrea Aime

I've found an interesting bug with the handling of period's in the PropertyName element which i hope someone could shed light on.

We're currently using a mix of postgis/arcsde layers on 1.4 and have switched on feature-level boundingbox generation for WFS.

We are sending the following query with the intention of getting feature names and only the bounding box (no actual geometry),

<wfs:GetFeature service="WFS" version="1.0.0" maxfeatures="10" outputFormat="GML2" xmlns:topp="http://www.openplans.org/topp&quot; xmlns:wfs="http://www.opengis.net/wfs&quot; xmlns:ogc="http://www.opengis.net/ogc&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd&quot;&gt;
<wfs:Query typeName="slip:LGATE-008">
<wfs:PropertyName>NAME</wfs:PropertyName>
    <ogc:Filter>
      <ogc:BBOX>
        <ogc:PropertyName>GID</ogc:PropertyName>
        <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4283&quot;&gt;
           <gml:coordinates>115.777,-31.916 115.79,-31.897</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Gives us the following in the logs,

INFO: No FID attribute was contained in your query. Appending the discovered one to the list of columns to be fetched.

<gml:featureMember>
  <slip:SDE.W_LAND_ADM_LOCALITIES_VIEW fid="SDE.W_LAND_ADM_LOCALITIES_VIEW.108">
    <gml:boundedBy>
      <gml:null>unknown</gml:null>
    </gml:boundedBy>
    <slip:NAME>INNALOO</slip:NAME>
  </slip:SDE.W_LAND_ADM_LOCALITIES_VIEW>
</gml:featureMember>

This is understandably why no boundingbox is generated against the SDE datastore, but when we try to attach the fid attribute as requested,

<wfs:PropertyName>GID.FID</wfs:PropertyName>

Geoserver appears to strip the "GID." and tries instead to lookup an attribute of "FID" which results in

<ServiceException>
      Requested property: FID is not available for slip:LGATE-008. The possible propertyName values are: [GID, USAGE_CODE, NAME, GID.FID]
</ServiceException>

Arghh!

If someone could point me in the direction of the offending bit of code - that would assist us greatly. Test service can be made available. Unfortunately we cannot alter the fid column name

Chris

--
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