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

Fix local variable 'upload' referenced before assignment in Remote.upload_chunks()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.4.0
    • Component/s: Remote client

      Description

      Sentry Issue: NUXEO-DRIVE-2FZ

      MemoryError: 
        File "nxdrive\client\remote_client.py", line 433, in upload_chunks
        File "nxdrive\engine\dao\sqlite.py", line 2017, in get_upload
        File "nxdrive\engine\dao\sqlite.py", line 1979, in get_uploads
        File "nxdrive\engine\dao\sqlite.py", line 1979, in <listcomp>
      
      UnboundLocalError: local variable 'upload' referenced before assignment
        File "nxdrive\engine\processor.py", line 270, in _execute
        File "nxdrive\engine\processor.py", line 779, in _synchronize_locally_created
        File "nxdrive\client\remote_client.py", line 709, in stream_file
        File "nxdrive\client\remote_client.py", line 401, in upload
        File "nxdrive\client\remote_client.py", line 550, in upload_chunks
      

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