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! Dave ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
