Andrea Aime created GEOS-5858 |
Issue Type: |
Bug |
Assignee: |
|
Components: |
REST |
Created: |
19/Jun/13 11:26 AM |
Description: |
When associating a workspace specific style with a layer the representation of the style mentions the workspace only in the atom link, e.g.: <defaultStyle> However, if one tries to update an existing layer via REST and point to a workspace specific style, the request has to contain a <workspace> element, like this: curl -v -u admin:geoserver -XPUT -H “Content-type: text/xml” -d “<layer><defaultStyle><name>test</name><workspace>topp</workspace></defaultStyle><enabled>true</enabled></layer>” http://localhost:8080/geoserver/rest/layers/topp:states Otherwise the update will silently fail. I could figure out the <workspace> thing only by looking at the code. |
Project: |
|
Priority: |
Major |
Reporter: |