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

Handle None chunk_size during upload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.1
    • Component/s: Remote client

      Description

      When uploading a file in a single upload, the chunk_size can be null.

      TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
        File "nxdrive/engine/processor.py", line 263, in _execute
          sync_handler(doc_pair)
        File "nxdrive/engine/processor.py", line 757, in _synchronize_locally_created
          overwrite=overwrite,
        File "nxdrive/client/remote_client.py", line 388, in stream_file
          overwrite=overwrite,
        File "nxdrive/client/remote_client.py", line 234, in upload
          action.progress += uploader.chunk_size
      

      Sentry Issue: NUXEO-DRIVE-PR

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 15 minutes
                15m