[Geoserver-devel] [jira] (GEOS-6489) Reading SLD by REST changes attribute value braking geoserver on update

Federico Tello Gentile created an issue

GeoServer / BugGEOS-6489

Reading SLD by REST changes attribute value braking geoserver on update

Issue Type:

BugBug

Affects Versions:

2.4.4

Assignee:

Andrea Aime

Attachments:

broken-capabilities.xml, geoserverstyle.png, reststyle.png

Components:

REST

Created:

21/May/14 11:18 AM

Environment:

Linux
Java 1.7.02

Labels:

style rest

Priority:

MajorMajor

Reporter:

Federico Tello Gentile

When getting the SLD with rest an attribute value comes modified
I get <ogc:Function name=“PointStacker”>
when the correct value is <ogc:Function name=“gs:PointStacker”>

The name attribute is an xsd:string so its value should be preserver as it is at any time.

Saving the received sld as it arrives causes major problems

  • brakes the layer’s style (no preview)
  • the sld cannot be retrieved again with rest (the answer is null)
    -the get capabilities xml is also broken (invalid xml format with a error XML appended at the end)
  • Geoserver logs an error

I’m attaching the broken capabilities.xml, and 2 screenshots showing the sld as viewed inside the geoserver and as viewed when getting it by rest.

The solution is to log in to geoserver and hand edit the style to correct the attribute value.


Caused by: java.lang.RuntimeException: Unable to find function PointStacker
at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:205)
at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:152)
at org.geotools.filter.FunctionFinder.findFunction(FunctionFinder.java:127)
at org.geotools.filter.FilterFactoryImpl.function(FilterFactoryImpl.java:754)
at org.geotools.filter.ExpressionDOMParser.expression(ExpressionDOMParser.java:424)
at org.geotools.styling.SLDParser.parseFeatureTypeStyle(SLDParser.java:855)
at org.geotools.styling.SLDParser.parseStyle(SLDParser.java:808)
at org.geotools.styling.SLDParser.parseNamedLayer(SLDParser.java:677)
at org.geotools.styling.SLDParser.parseDescriptor(SLDParser.java:469)
at org.geotools.styling.SLDParser.parseSLD(SLDParser.java:431)
at org.geoserver.catalog.Styles$Handler$1.parse(Styles.java:285)
at org.geoserver.catalog.Styles.parse(Styles.java:95)
at org.geoserver.catalog.ResourcePool.getStyle(ResourcePool.java:1568)
at org.geoserver.catalog.impl.StyleInfoImpl.getStyle(StyleInfoImpl.java:84)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo