Personal tools
You are here: Home OST Help Center How-tos Unlock WebDAV Locks
Document Actions

Unlock WebDAV Locks

This How-to applies to: Any version.

Instructions for forcing a WebDAV unlock of items even WebDAV cannot access.

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.

  1. Create a Python Script in the folder containing the locked object (e.g., PublicWeb or PublicWeb/Library).
    ID: UnlockAllLocks
    Parameter List: leave blank
    for obj in context.objectValues():
    if obj.wl_isLocked():
    print '%s is locked' % obj.getId()
    obj.wl_clearLocks()
    print 'Not any more'

    return printed
  2. Click the Test tab to run the script.
by Judy Bennett last modified 2006-03-10 12:10 © 2006 by Kaivo Software, Inc.

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: