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

[macOS] Fix opened documents retrieval not interating-safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 5.2.2
    • Component/s: OS Integration
    • Environment:
      macOS
    • Release Notes Summary:
      [macOS] Opened Files
    • Release Notes Description:
      Hide

      While trying to get the list of opened files, if the user closes one or more of them, then a silly error was fired and the list was not retrieved at all. We fixed the issue by doing a copy of that list as soon as possible, and then iterating on its items safely.

      Show
      While trying to get the list of opened files, if the user closes one or more of them, then a silly error was fired and the list was not retrieved at all. We fixed the issue by doing a copy of that list as soon as possible, and then iterating on its items safely.
    • Epic Link:
    • Sprint:
      nxDrive 11.2.22
    • Story Points:
      1

      Description

      Issue

      Sentry Issue: NUXEO-DRIVE-ZN

      IndexError: NSRangeException - *** -[NSArray getObjects:range:]: range {0, 3} extends beyond bounds for empty array
        File "nxdrive/autolocker.py", line 72, in _poll
        File "nxdrive/autolocker.py", line 87, in _process
        File "nxdrive/autolocker.py", line 183, in get_open_files
        File "nxdrive/osi/darwin/files.py", line 73, in get_other_opened_files
        File "nxdrive/osi/darwin/files.py", line 50, in _get_opened_files_adobe_cc
        File "objc/_convenience.py", line 131, in <lambda>
      

      Analysis

      This happens while trying to get the list of opened documents and the user closes one or more of them. This cannot be fixed as it is a Cocoa specific error.

        Attachments

          Issue Links

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