[Geoserver-devel] [JIRA] (GEOS-8321) Monitoring plugin Path Exception

Alessio Fabiani created an issue

GeoServer / BugGEOS-8321

Monitoring plugin Path Exception

Issue Type:

BugBug

Affects Versions:

2.11.2, 2.12-RC1

Assignee:

Unassigned

Components:

Monitoring

Created:

06/Oct/17 1:47 PM

Priority:

HighHigh

Reporter:

Alessio Fabiani

https://github.com/geoserver/geoserver/blob/3518cdb07ec159c1ac365fc8583da7ff4b9da89b/src/extension/monitor/core/src/main/java/org/geoserver/monitor/rest/RESTMonitorCallback.java#L46

causes:

java.nio.file.InvalidPathException: Illegal char <:> at index 19: /sldservice/geonode:san_andres_y_providencia_administrative/attributes.xml
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)

request.getPathInfo() should be URLEncoded before parsing

e.g.:

String resource = Paths.get(URLEncoder.encode(request.getPathInfo(), “UTF-8”)).getFileName().toString();

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#100063-sha1:48e4caf)

Atlassian logo