Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2409

[Direct Edit] Handle document unlock error when it is already locked by someone else

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.5.1
    • Component/s: Direct Edit

      Description

      Error

      Sentry Issue: NUXEO-DRIVE-3SN

      HTTPError: 500 Server Error:  for url: https://uniged-dm.com/nuxeo/site/automation/Document.Unlock
        File "lib\site-packages\nuxeo\client.py", line 282, in request
        File "lib\site-packages\requests\models.py", line 941, in raise_for_status
      
      HTTPError: HTTPError(500), error: 'Failed to invoke operation: Document.Unlock, Failed to invoke operation Document.Unlock, Document already locked by USERID2: DOCID', server trace: None
      (1 additional frame(s) were not displayed)
      ...
        File "nxdrive\client\remote_client.py", line 696, in unlock
        File "nxdrive\client\remote_client.py", line 204, in execute
        File "nxdrive\client\remote_client.py", line 200, in execute
        File "lib\site-packages\nuxeo\operations.py", line 206, in execute
        File "lib\site-packages\nuxeo\client.py", line 285, in request
      
      Cannot unlock_orphan document WindowsPath('DOCID_doc-fichierLivrable/some important file.pdf')
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 40 minutes
                  2h 40m