[Geoserver-devel] [JIRA] (GEOS-8221) GeoServerDataDir returns the root directory if workspace is null

Torben Barsballe created an issue

GeoServer / BugGEOS-8221

GeoServerDataDir returns the root directory if workspace is null

Issue Type:

BugBug

Assignee:

Unassigned

Created:

12/Jul/17 6:25 PM

Priority:

MediumMedium

Reporter:

Torben Barsballe

The GeoServerDataDirectory class has a number of “get__()” methods with a workspace version and a no workspace (global) version.For example: getStyles() .

Typically, in the catalog if a null workspace is provided, the global ‘workspace’ is assumed.
However, if you provide a null workspace to one of these methods, you get back the root of the data dir, instead of whatever you were asking for. This behaviour seems contrary to how most of the rest of GeoServer works, and rather error prone.

These methods should be changed to handle the case of a null workspace as if it were the global “workspace”.

Add Comment

Add Comment

Get JIRA notifications on your phone! Download the JIRA Cloud app here.


This message was sent by Atlassian JIRA (v1000.1112.0#100055-sha1:e34bbca)

Atlassian logo