Restconfig, reading and writing styles modifies them.
-----------------------------------------------------
Key: GEOS-3983
URL: http://jira.codehaus.org/browse/GEOS-3983
Project: GeoServer
Issue Type: Bug
Components: REST
Affects Versions: 2.0.2, 2.0.1, 2.0.0, 1.7.7
Reporter: Fredrik Holmqvist
Assignee: Andrea Aime
Attachments: bit-perfect_styles_patch.patch
Reading and writing styles should be exact copies, but are currently being massacared by REST:
Here are just some of the flaws:
* It don't respect encoding like <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
* It don't translate encoded chars which it should if it switches encoding.
* It removes comments and other info.
* It adds and removes elements.
Expected behaviour: A perfect copy of the style as it is on disk.
This makes this feature unusable. For instance copying a style from one server should result in a perfect copy.
The code path is also very different from adding a style manually, which don't have these kind of problems.
Providing a patch which solves our problems, but maybe needs a bit of work.
--
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