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

Display a message on forbidden Direct Edit lock action

    XMLWordPrintable

    Details

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-20Y

      Cannot lock document WindowsPath(FILE)
      
      HTTPError: 403 Client Error:  for url: https://SERVER/nuxeo/site/automation/Document.Lock
        File "lib\site-packages\nuxeo\client.py", line 269, in request
        File "lib\site-packages\requests\models.py", line 940, in raise_for_status
      
      Forbidden: Forbidden(403), error: "Failed to invoke operation: Document.Lock, Failed to invoke operation Document.Lock, Privilege 'WriteProperties' is not granted to 'USER'", server trace: None
        File "nxdrive\direct_edit.py", line 588, in _handle_lock_queue
        File "nxdrive\direct_edit.py", line 566, in _lock
        File "nxdrive\direct_edit.py", line 552, in _lock
        File "nxdrive\client\remote_client.py", line 796, in lock
        File "nxdrive\client\remote_client.py", line 143, in execute
        File "nxdrive\client\remote_client.py", line 139, in execute
        File "lib\site-packages\nuxeo\operations.py", line 203, in execute
        File "lib\site-packages\nuxeo\client.py", line 272, in request
      

      Fix

      As done in NXDRIVE-1469:

      • Log the exception as a warning.
      • Inform the user.
      • Remove the file from the lock queue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 21 minutes
                  21m