• Soft Delete problems when Document Locking enabled

    By Glen Urban 2 decades ago

    For a user who has Author access, delete documents and [Admin] role. In a DB with "Allow Document Locking" DB property ticked, the following happens when trying to delete documents.



    1) If the user presses the "Delete" action button the confirmation prompt appears but when you confirm the action no documents are deleted (no trash icon appears in the gutter).



    2) If the user presses the "Delete" key then the trash icon appears in the gutter (which is incosistent with users of a higher level of access). Then when you press F9 to try and permanently delete the document you get the prompt "Document Locking is enabled. You must lock the document before deleting"



    The document locking prompt is a reported bug with Lotus Notes:

    http://www-1.ibm.com/support/docview.wss?rs=463&context=SSKTMJ&context=SSKTWP&dc=DB500&q1=author+lock&uid=swg1LO08688&loc=en_US&cs=utf-8&lang=en



    A workaround is to lock the documents in the QueryDocumentDelete event before deleting. The side effect of this is that only the user who deleted the document can restore it. Also, the documents should be unlocked if restored from trash.



    I reproduced this problem with client versions 6.5.6, 7.03, and 8.0.1 on 6.5.6FP1 and 8.0.1 servers.

    • Initial fix seems to work - more testing now

      By Kevin Pettitt 2 decades ago

      I blogged recently about a major upgrade to SuperNTF's document locking functionality: http://www.lotusguru.com/lotusguru/LGBlog.nsf/d6plinks/20080407-7DGHTT



      In the comments I reference efforts to fix this bug, which as of now appear successful. I've got a little more testing to do, and am curious if the problem exists when soft deletions is not enabled but doc locking is. If so I'll probably have a little tweaking to accomodate that scenario.