[Geoserver-devel] [jira] Created: (GEOS-4247) WFS GetFeature fails due to Security - ReadOnlyFeatureIterator ?

WFS GetFeature fails due to Security - ReadOnlyFeatureIterator ?
-----------------------------------------------------------------

                 Key: GEOS-4247
                 URL: http://jira.codehaus.org/browse/GEOS-4247
             Project: GeoServer
          Issue Type: Bug
          Components: Security
    Affects Versions: 2.0.2
         Environment: Windows 2008 Server
            Reporter: Dave Kimball
            Assignee: Andrea Aime
            Priority: Minor

I'm having troubles getting past Geoserver security for the following filtered WFS GetFeature request. It works fine if the browser is logged on to GeoServer, but fails if not logged on. I've set Service and Layer Security to allow all (Essentially *.* for * users for Read Requests). I'm guessing there is a security value I'm missing, but I can't seem to find it.....

I have no problems for other requests when the browser is not logged on. I can do GetCapabilities, GetFeature for WMS. The trouble seems tied to the WFS request.

REQUEST:

params = "?request=getfeature
&service=wfs&version=1.0.0
&typename=TELEPARTNER:Farm_Parcels
&filter="+urlencode(filter)

OpenLayers.loadURL(urlBase+"/geoserver/wfs"+params, null, this,
getGeocode, getGeocode);

ERROR:

INFO | jvm 1 | 2010/12/01 10:25:31 | java.lang.ClassCastException:
org.geoserver.security.decorators.ReadOnlyFeatureIterator cannot be
cast to org.geotools.feature.collection.DelegateFeatureIteratorINFO
| jvm 1
| 2010/12/01 10:25:31 | at
org.geoserver.feature.RetypingFeatureCollection.close(RetypingFeatureC
ol
lection.java:60)
INFO | jvm 1 | 2010/12/01 10:25:31 | at
org.geoserver.security.decorators.ReadOnlyFeatureCollection.close(Read
On
lyFeatureCollection.java:70)
INFO | jvm 1 | 2010/12/01 10:25:31 | at
org.geoserver.wfs.response.GeoJSONOutputFormat.write(GeoJSONOutputForm
at
.java:210)

ENVIRONMENT:
Geoserver 2.0.2 under Windows 2008 Server

Any insight would be greatly appreciated!

-----

As far as I can see this is still a bug, even in GeoServer 2.1 beta.
Please open a bug report on jira.codehaus.org

Cheers
Andrea

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