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

Display a message on forbidden DriveEdit action

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.1.0
    • Component/s: Direct Edit
    • Tags:
    • Backlog priority:
      400
    • Sprint:
      nxDrive 10.10.4, nxDrive 10.10.5, nxDrive 11.1.1
    • Story Points:
      1

      Description

      As those logs shows, this is not currently handled:

      2018-12-13 15:31:15,576 10132 9452 ERROR    nxdrive.commandline Error executing 'launch': 
      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\commandline.py", line 472, in handle
        File "nuxeo-drive-client\nxdrive\commandline.py", line 501, in launch
        File "nuxeo-drive-client\nxdrive\direct_edit.py", line 114, in handle_url
        File "nuxeo-drive-client\nxdrive\direct_edit.py", line 308, in edit
        File "nuxeo-drive-client\nxdrive\direct_edit.py", line 241, in _prepare_edit
        File "nuxeo-drive-client\nxdrive\client\remote_document_client.py", line 316, in doc_to_info
        File "nuxeo-drive-client\nxdrive\client\remote_document_client.py", line 437, in fetch
      HTTPError: HTTP Error 403: 
      
      2018-12-13 15:48:12 13924 7524 DEBUG    nxdrive.direct_edit Uploading file u'\\\\?\\C:\\Users\\USER\\.nuxeo-drive\\edit\\UID\\D\xe9part Juliette.docx'
      2018-12-13 15:48:16 13924 7524 DEBUG    nxdrive.client.base_automation_client Remote exception message: Failed to invoke operation NuxeoDrive.AttachBlob, Privilege 'WriteProperties' is not granted to 'juliette.fauritte'
      2018-12-13 15:48:16 13924 7524 DEBUG    nxdrive.client.base_automation_client Remote exception details: '{"entity-type":"exception","status":403,"message":"Failed to invoke operation NuxeoDrive.AttachBlob, Privilege \'WriteProperties\' is not granted to \'juliette.fauritte\'"}'
      2018-12-13 15:48:16 13924 7524 ERROR    nxdrive.direct_edit DirectEdit unhandled error for ref u'/UID/D\xe9part Juliette.docx'
      Traceback (most recent call last):
        File "nxdrive\direct_edit.py", line 469, in _handle_upload_queue
        File "nxdrive\client\remote_document_client.py", line 206, in stream_update
        File "nxdrive\client\base_automation_client.py", line 448, in execute_with_blob_streaming
        File "nxdrive\client\base_automation_client.py", line 577, in execute_batch
        File "nxdrive\client\base_automation_client.py", line 385, in execute
      HTTPError: HTTP Error 403: 
      

      Fix

      • Inform the user
      • Remove the file from the upload queue

        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 days
                  2d