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

Handle PermissionError in get_open_files()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0
    • Component/s: Lock / Autolock

      Description

      get_open_files() is used by the AutoLocker to find files currently opended on the OS. We use it to lock/unlock documents on the server while DirectEditing.

      But if the user does not have enough access rights to some file, the whole function will throw such error:

      PermissionError: [WinError 5] Access is denied: 'xxx'
      

      The fix is quite simple: skip those files.

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