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

Fix folders watch on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0
    • Component/s: OS Integration
    • Environment:
      Windows

      Description

      Issue

      For an unknown reason, we can end on this error when unwatching a folder on Windows:

      KeyError: WindowsPath('C:/Users/nuxeo/Documents/Nuxeo Drive 5')
       File "nxdrive\gui\api.py", line 557, in unbind_server
       File "nxdrive\manager.py", line 660, in unbind_engine
       File "nxdrive\osi\windows\windows.py", line 239, in unwatch_folder
       

      Fix

      In 2 parts:
      1) Filter out this specifc error.
      2) When registering watched folders, we should use the current folders in use instead of looking for ones in the registry.

        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 - 1 hour
                1h

                  PagerDuty