|
M. Gone created an issue |
Issue Type: |
|
---|---|
Affects Versions: |
2.10.0 |
Assignee: |
Unassigned |
Components: |
REST |
Created: |
15/Mar/17 4:17 PM |
Environment: |
Architecture: x86_64 Red Hat Enterprise Linux Server release 6.5 (Santiago) GeoTools Version:16.0 |
Priority: |
|
Reporter: |
We are using Geoserver REST API to upload and attach yaml style files to layers. A sample yaml file looks like this: name: Test
We use the following curl commands to upload the style: Creating Style Update the style with uploaded style info Check result: <?xml version=“1.0” encoding=“UTF-8”?> As can be seen, #e20374 is converted to java.awt.Color instead of the same ‘#e20374’ literal. When I manually edit the yaml file in geoserver (i.e replace java.awt.Color[r=226,g=3,b=116] with #e20374) , I get the correct styling. However, if I use the the java color ( java.awt.Color[r=226,g=3,b=116]), I get the following error: Null; Invalid color, must be one of ‘#RRGGBB’, rgb(r,g,b), or expression: in ‘reader’ line 14, column 14:- java.awt.Color[r=226,g=3,b=116] … It seems that something goes wrong during conversion. |
This message was sent by Atlassian JIRA (v1000.824.2#100035-sha1:a97671d) |
|