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

Check for local folder rights and fail gracefully on permission error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.4
    • Component/s: Local client

      Description

      When binding an account, we should check for PermissionError and let the user know the eventual issue.

      Revelant error:

      2019-06-17 11:20:43 11608 45072 ERROR    nxdrive.manager    Engine error
      Traceback (most recent call last):
        File "nxdrive\client\local_client.py", line 348, in set_remote_id
      PermissionError: [Errno 13] Permission denied: '\\\\?\\C:\\Nuxeo Drive:ndriveroot'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "nxdrive\manager.py", line 653, in bind_engine
        File "nxdrive\engine\engine.py", line 127, in __init__
        File "nxdrive\engine\engine.py", line 814, in bind
        File "nxdrive\engine\engine.py", line 834, in _check_root
        File "nxdrive\engine\engine.py", line 896, in _add_top_level_state
        File "nxdrive\client\local_client.py", line 192, in set_root_id
        File "nxdrive\client\local_client.py", line 360, in set_remote_id
      PermissionError: [Errno 13] Permission denied: '\\\\?\\C:\\Nuxeo Drive:ndriveroot'
      
      2019-06-17 11:20:43 11608 45072 ERROR    nxdrive.gui.api    Unexpected error
      Traceback (most recent call last):
        File "nxdrive\client\local_client.py", line 348, in set_remote_id
      PermissionError: [Errno 13] Permission denied: '\\\\?\\C:\\Nuxeo Drive:ndriveroot'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "nxdrive\gui\api.py", line 615, in bind_server
        File "nxdrive\gui\api.py", line 587, in _bind_server
        File "nxdrive\manager.py", line 660, in bind_engine
        File "nxdrive\manager.py", line 653, in bind_engine
        File "nxdrive\engine\engine.py", line 127, in __init__
        File "nxdrive\engine\engine.py", line 814, in bind
        File "nxdrive\engine\engine.py", line 834, in _check_root
        File "nxdrive\engine\engine.py", line 896, in _add_top_level_state
        File "nxdrive\client\local_client.py", line 192, in set_root_id
        File "nxdrive\client\local_client.py", line 360, in set_remote_id
      PermissionError: [Errno 13] Permission denied: '\\\\?\\C:\\Nuxeo Drive:ndriveroot'
      

        Attachments

          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 - 15 minutes
                15m