|
Torben Barsballe created an issue |
REST API implementation for setting defaults violates Catalog API |
Issue Type: |
|
---|---|
Assignee: |
Unassigned |
Components: |
REST |
Created: |
15/Nov/16 1:32 AM |
Priority: |
|
Reporter: |
The REST API implementation of handleObjectPut for NamespaceResource and WorkspaceResource has an odd implementation for case of setting the default value. https://github.com/geoserver/geoserver/blob/master/src/restconfig/src/main/java/org/geoserver/catalog/rest/NamespaceResource.java#L88 Just looking at the CatalogInfo / CatalogFacade interfaces, the behaviour for this is undefined, but the implication is that you should be passing valid Catalig objects to the CatalogFacade method. Looking at the implementation, it appears this only works because there is a special case hardcoded in to handle it: The REST API implementation should be fixed. |
This message was sent by Atlassian JIRA (v1000.550.0#100018-sha1:c2a8a35) |
|