-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.1.4
-
Fix Version/s: NoFixVersionApplicable
-
Component/s: Direct Edit
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.
- duplicates
-
NXDRIVE-2125 Improve the Direct Edit flow
- Resolved
- is related to
-
NXDRIVE-1469 Display a message on forbidden DriveEdit action
- Resolved