[Geoserver-devel] [JIRA] (GEOS-7534) GeoServerPropertyOverrideConfigurer doesn't properly substitute windows paths

Nuno Oliveira created an issue

GeoServer / BugGEOS-7534

GeoServerPropertyOverrideConfigurer doesn’t properly substitute windows paths

Issue Type:

BugBug

Assignee:

Nuno Oliveira

Created:

06/May/16 5:19 PM

Fix Versions:

2.8.4, 2.9.1, 2.10-beta

Priority:

MediumMedium

Reporter:

Nuno Oliveira

GeoServerPropertyOverrideConfigurer uses replaceAll() method to substitute GEOSERVER_DATA_DIR placeholders with GeoServer data dir path. Problem, the replaceAll() method uses regex instead of literal strings, so when substituting with an windows path this will produce a wrong result.

For example, if GeoServer data dir path is “C:\Users\Work\GeoServer\data” and we have a property like this "jdbc:h2:$

{GEOSERVER_DATA_DIR}

\db" the substitution will be:

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.5.2#72002-sha1:b4422fe)

Atlassian logo