Unlock WebDAV Locks
This How-to applies to: Any version.
Occasionally, sites using WebDAV to manage content find that the content is locked by WebDAV and inaccessible (even by WebDAV). We don't yet know why this happens. What we do know is how to force an unlock. This will probably confuse WebDAV or cause version problems if someone with a WebDAV copy of that content then tries to return their changes to the site. So, use this as a last resort.
- Create a Python Script in the folder containing the locked object
(e.g., PublicWeb or PublicWeb/Library).
ID: UnlockAllLocks
Parameter List: leave blankfor obj in context.objectValues():
if obj.wl_isLocked():
print '%s is locked' % obj.getId()
obj.wl_clearLocks()
print 'Not any more'
return printed - Click the Test tab to run the script.