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

Description

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
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

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
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

Geoserver logfile is attached.

Environment

None

Status

Assignee

Fernando Miño

Reporter

Stefan Ziegler

Triage

Fix versions

None

Affects versions

Components

Priority

Medium
Configure