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

[Direct Edit] Handle locking permission errors in the lock queue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.5.0
    • Component/s: Direct Edit
    • Release Notes Summary:
      Direct Edit lock permission errors
    • Release Notes Description:
      Hide

      Direct Edit lock permission errors are now handled and a warning is displayed to the user.

      Show
      Direct Edit lock permission errors are now handled and a warning is displayed to the user.

      Description

      Error

      Sentry Issue: NUXEO-DRIVE-2FC

      HTTPError: 403 Client Error:  for url: SERVER/site/automation/Document.Lock
        File "lib\site-packages\nuxeo\client.py", line 282, in request
        File "lib\site-packages\requests\models.py", line 941, 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 652, in _handle_lock_queue
        File "nxdrive\direct_edit.py", line 627, in _lock
        File "nxdrive\direct_edit.py", line 613, in _lock
        File "nxdrive\client\remote_client.py", line 693, in lock
        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
      

      That error is just filling our Sentry quota (more than 3,900 events as of today) and is not useful for Nuxeo.

      Fix

      That error should be handled and a message should be displayed to the user.

        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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.