[Geoserver-devel] [jira] (GEOS-6461) GWCIntergrationTest and GeoServerPersister leaves stray namespace and workspace files

Jody Garnett created an issue

GeoServer / BugGEOS-6461

GWCIntergrationTest and GeoServerPersister leaves stray namespace and workspace files

Issue Type:

BugBug

Assignee:

Andrea Aime

Components:

GWC, Main

Created:

23/Apr/14 2:39 AM

Priority:

MajorMajor

Reporter:

Jody Garnett

I managed to break the build (sigh) fixing a stray files left by running GWCIntergrationTest

The file were left in the codebase (rather than the data directory):

  • gwc/namespace.xml
  • gwc/workspace.xml

Turns out it was from the following logic:

    void renameWorkspace( WorkspaceInfo ws, String newName ) throws IOException {
        LOGGER.fine( "Renaming workspace " + ws.getName() + "to " + newName );
        rename( dir( ws ), newName );
    }

The dir( ws ) call returns null, resulting in a bare workspace.xml file.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo