[Geoserver-devel] [JIRA] (GEOS-8907) Unable to upload sld file when style has a point in name

Stefan Ziegler created an issue

GeoServer / BugGEOS-8907

Unable to upload sld file when style has a point in name

Issue Type:

BugBug

Affects Versions:

2.13.2

Assignee:

Unassigned

Attachments:

geoserver.log

Components:

REST

Created:

27/Aug/18 7:19 PM

Priority:

MediumMedium

Reporter:

Stefan Ziegler

Posting a new style and then putting (uploading) the sld file to this style does not work when the style has point in its name:

Working:
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "<style><name>fubar</name><filename>fubar.sld</filename><languageVersion><version>1.1.0</version></languageVersion></style>" [http://localhost:8080/geoserver/rest/styles](http://localhost:8080/geoserver/rest/styles)
curl -v -u admin:geoserver -XPUT -H "Content-type: application/vnd.ogc.se+xml" -d @fubar.sld [http://localhost:8080/geoserver/rest/styles/fubar?raw=true](http://localhost:8080/geoserver/rest/styles/fubar?raw=true)

Not working:
curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d "<style><name>foo.bar</name><filename>fubar.sld</filename><languageVersion><version>1.1.0</version></languageVersion></style>" [http://localhost:8080/geoserver/rest/styles](http://localhost:8080/geoserver/rest/styles)
curl -v -u admin:geoserver -XPUT -H "Content-type: application/vnd.ogc.se+xml" -d @fubar.sld [http://localhost:8080/geoserver/rest/styles/foo.bar?raw=true](http://localhost:8080/geoserver/rest/styles/foo.bar?raw=true)

Geoserver logfile is attached.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100090-sha1:68bb6c0)

Atlassian logo