[Geoserver-devel] [jira] (GEOS-5370) WPS requests fail when performed on a secured layer

Matt Currie created BugGEOS-5370
WPS requests fail when performed on a secured layer

Issue Type:

BugBug

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

  1. 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=“http://geoserver/wfs” 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:

MajorMajor

Reporter:

Matt Currie

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)