[Geoserver-devel] [JIRA] (GEOS-8484) WPSResourceManager does not remove process root output folder

miskender created an issue

GeoServer / BugGEOS-8484

WPSResourceManager does not remove process root output folder

Issue Type:

BugBug

Affects Versions:

2.12.1

Assignee:

Unassigned

Created:

11/Dec/17 10:29 AM

Priority:

LowLow

Reporter:

miskender

Process with executionId = “xxxxx-xxxx-xxxx-xxxx” creates output folder with the same name. After execution of the process completes everything inside base folder is deleted but the base folder itself is not deleted. (This is tested with asynchronous process)
Possible Fix: WPSResourceManager.cleanupResource() method modified as;
else if (resourceType == Type.DIRECTORY) {
long folderModifiedBackUp = resource.lastmodified();
for (Resource child : resource.list())

{ result &= cleanupResource(child, expirationThreshold); }

if( folderModifiedBackUp < expirationThreshold)

{ result &= resource.delete(); }

else

{ result = false; }

}

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#100074-sha1:3da8cec)

Atlassian logo