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

[Windows] Fix a TypeError when no enough rights on the local sync folder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 4.4.2
    • Component/s: Watchdog
    • Environment:
      Windows

      Description

      Sentry Issue: NUXEO-DRIVE-2EA

      PermissionError: [WinError 5] Accès refusé.
        File "lib\site-packages\watchdog\observers\winapi.py", line 333, in read_directory_changes
        File "lib\site-packages\watchdog\observers\winapi.py", line 105, in _errcheck_bool
      
      TypeError: expected bytes, str found
        File "lib\site-packages\watchdog\observers\api.py", line 145, in run
        File "lib\site-packages\watchdog\observers\read_directory_changes.py", line 76, in queue_events
        File "lib\site-packages\watchdog\observers\read_directory_changes.py", line 73, in _read_events
        File "lib\site-packages\watchdog\observers\winapi.py", line 387, in read_events
        File "lib\site-packages\watchdog\observers\winapi.py", line 340, in read_directory_changes
        File "lib\site-packages\watchdog\observers\winapi.py", line 298, in _generate_observed_path_deleted_event
      

      This happens when the user lost rights on the local sync folder. It may also happens when the folder is deleted while Drive is running (unliklely as Windows blocks the deletion).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1 hour, 10 minutes
                1h 10m