Uploaded image for project: 'GeoServer'
  1. GEOS-8221

GeoServerDataDir returns the root directory if workspace is null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12-beta, 2.11.2, 2.10.5
    • Component/s: None
    • Labels:
      None

      Description

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

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tbarsballe Torben Barsballe
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: