Improve resource name validation for RESTConfig
-----------------------------------------------
Key: GEOS-3948
URL: http://jira.codehaus.org/browse/GEOS-3948
Project: GeoServer
Issue Type: Improvement
Components: REST
Affects Versions: 2.0.1
Reporter: David Winslow
Assignee: Andrea Aime
As discussed in GEOS-3755, it would be useful for the RESTConfig service to raise an error instead of continuing when a request is made that would create a configuration that breaks GeoServer output. For example, naming a featuretype "i have spaces" would result in invalid XML output for various WMS and WFS requests.
Attached is a patch that starts working on this by extending the validation done within CatalogImpl, but I think there's still room for discussion about how to implement this (could it share validation rules with the web ui somehow? does the validation need to happen in RESTConfig itself so that we can adjust names to get things working? etc.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira