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

Catch TypeError in RemoteFileInfo.from_dict()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.1
    • Fix Version/s: 5.2.0
    • Component/s: Framework

      Description

      Sentry Issue: NUXEO-DRIVE-4YY

      TypeError: byte indices must be integers or slices, not str
        File "nxdrive/engine/watcher/remote_watcher.py", line 636, in _handle_changes
        File "nxdrive/engine/watcher/remote_watcher.py", line 594, in _partial_full_scan
        File "nxdrive/engine/watcher/remote_watcher.py", line 144, in _scan_pair
        File "nxdrive/client/remote_client.py", line 521, in get_fs_info
        File "nxdrive/objects.py", line 92, in from_dict
      
      Unexpected error
      

      Instead, a DriveError should be raised, just like when the server return incomplete JSON data.

        Attachments

          Issue Links

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