[Geoserver-devel] [jira] (GEOS-5873) Certain Style names cause GeoServer to error

Jonathan Moules created BugGEOS-5873
Certain Style names cause GeoServer to error

Issue Type:

BugBug

Affects Versions:

2.3.3

Assignee:

Andrea Aime

Components:

Wicket UI

Created:

02/Jul/13 6:34 AM

Description:

If I create a new SLD and give it a name of “OS VMD - Line - Roads (minor\local\pedestrian)” GeoServer will error out when I press submit.
Seems there isn’t any sanity checking of the inputs for characters that are either special to the Operating System.

I get “Oops, something went wrong…”

org.apache.wicket.WicketRuntimeException: java.io.FileNotFoundException: D:\GeoServer_Config_Dir\styles\OS VMD - Line - Roads (minor\local\pedestrian).sld (The system cannot find the path specified) at org.geoserver.wms.web.data.StyleNewPage.onStyleFormSubmit(StyleNewPage.java:61) at org.geoserver.wms.web.data.AbstractStylePage$1.onSubmit(AbstractStylePage.java:109) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1565) at org.apache.wicket.markup.html.form.Form.process(Form.java:958) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:920) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)