plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
upgrade script removes cache too aggresively  (#11814)
Issue

The upgrade script uses File::Path::rmtree() to remove WebGUI's temp files and cache. The way rmtree() is being called makes it remove the files _and_ the root directory for the cache, e.g. if one has set fileCacheRoot to /var/cache/webgui, the upgrade script will remove /var/cache/webgui contents _and_ /var/cache/webgui afterwards, leaving the installation without a valid fileCacheRoot.

This can be fixed with

File::Path::rmtree($path,{ keep_root => 1 })

so the root of the operation ($path) is not removed.

Solution Summary
Comments
perlDreamer
0
9/7/2010 1:11 pm
Applied the same patch to the uploads temp directory.

In several runs, the cache directory was always recreated by some side process calling $cache->set, which would rebuild the cache root directory.  However, there's still no need to do that.

Fixed in 7.9.14 (2ee97e7)
Fixed in 7.10.0 (91acd4c)
Details
Ticket Status Resolved  
Rating0.0 
Submitted BySquOnk 
Date Submitted2010-08-30 
Assigned To unassigned  
Date Assigned2012-02-11 
Assigned By 
Severity Minor (annoying, but not harmful)  
What's the bug in? WebGUI Stable  
WebGUI / WRE Version 7.9.13  
URLuse/bugs/tracker/11814
Keywords
Ticket History
9/7/2010
1:11 PM
Resolved perlDreamer
8/30/2010
5:18 PM
Ticket created SquOnk
© 2012 Plain Black Corporation | All Rights Reserved