![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
2.2.1 |
|
Assignee:
|
Andrea Aime
|
|
Components:
|
Security, WPS |
|
Created:
|
25/Oct/12 12:13 AM
|
|
Description:
|
Steps to reproduce:
1. Update layers.properties as below:
..r=*
..w=*
sf.roads.r=ROLE_ANONYMOUS
mode=HIDE
2. Either use the WPS request builder to do a gs:Count, or POST the below content to http://localhost:8080/geoserver/wps
<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>gs:Count</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>features</ows:Identifier>
<wps:Reference mimeType="text/xml" xlink:href="" method="POST">
<wps:Body>
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" xmlns:sf="http://www.openplans.org/spearfish">
<wfs:Query typeName="sf:roads"/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
Response is:
<wps:ExecuteResponse xml:lang="en" service="WPS" serviceInstance="http://localhost:8080/geoserver/ows?" version="1.0.0"><wps:Process wps:processVersion="1.0.0"><ows:Identifier>gs:Count</ows:Identifier><ows:Title>Count Features</ows:Title><ows:Abstract>Computes the number of features in a feature collection.</ows:Abstract></wps:Process><wps:Status creationTime="2012-10-25T05:07:15.625Z"><wps:ProcessFailed><ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed during execution
Process execution 011498bd-5263-4991-a6d4-c2d6d69229f6 failed
Failed to retrieve value for input features
Could not locate {http://www.openplans.org/spearfish}roads in catalog.</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>
Expected response "825" can be returned by commenting out the "sf.roads.r=ROLE_ANONYMOUS" line from layers.properties.
|
|
Project:
|
GeoServer
|
|
Labels:
|
exception
|
|
Priority:
|
Major
|
|
Reporter:
|
Matt Currie
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel