|
Issue Type:
|
Bug
|
Affects Versions:
|
2.3-beta1
|
Assignee:
|
Andrea Aime
|
Components:
|
REST
|
Created:
|
25/Jan/13 5:28 PM
|
Description:
|
The results of workspaces/default.json and workspaces/default.xml can’t be PUT back as they arrived.
XML:
<workspace>
<name>sf</name>
<dataStores>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver-2.3-beta1/rest/workspaces/default/datastores.xml" type="application/xml"/>
</dataStores>
<coverageStores>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver-2.3-beta1/rest/workspaces/default/coveragestores.xml" type="application/xml"/>
</coverageStores>
<wmsStores>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver-2.3-beta1/rest/workspaces/default/wmsstores.xml" type="application/xml"/>
</wmsStores>
</workspace>
However, to change the default workspace, the format must be simply:
<workspace>
<name>sf</name>
</workspace>
Attempting to PUT back the original document gets a:
No such field org.geoserver.catalog.impl.WorkspaceInfoImpl.dataStores
---- Debugging information ----
field : dataStores
class : org.geoserver.catalog.impl.WorkspaceInfoImpl
required-type : org.geoserver.catalog.impl.WorkspaceInfoImpl
converter-type : org.geoserver.config.util.XStreamPersister$SpaceInfoConverter
line number : 1
version : null
* Closing connection #0
-------------------------------
|
Project:
|
GeoServer
|
Priority:
|
Minor
|
Reporter:
|
Benjamin Trigona-Harany
|
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)