On Wed, Dec 1, 2010 at 4:59 PM, Dave Kimball <[email protected]> wrote:
> 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(RetypingFeatureCol
> lection.java:60)
> INFO   | jvm 1    | 2010/12/01 10:25:31 |       at
> org.geoserver.security.decorators.ReadOnlyFeatureCollection.close(ReadOn
> lyFeatureCollection.java:70)
> INFO   | jvm 1    | 2010/12/01 10:25:31 |       at
> org.geoserver.wfs.response.GeoJSONOutputFormat.write(GeoJSONOutputFormat
> .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


-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to