Verified test case passed using proposed ubuntuone-client
2.0.0-0ubuntu2.1

** Description changed:

  The tempfile, now that it's not closed, it must be reset to 0 on every
  _run(), as the storageprotocol's client only seeks into the tempfile if
  it's a resumable one.
  
  So, if we don't reset it to the start, on normal files, in the case of
  retries, we'll start the upload from the middle of the file, which will
  fail because of "corrupt data" (which will generate a retry... yes, a
  loop).
+ 
+ TEST CASE:
+ 1. Grab a file of substantial size (100Mb is ok) which is not yet on Ubuntu 
One
+ 2. Put it to ~/Ubuntu One folder
+ 3. Wait until upload starts by looking at u1sdtool --current-transfers
+ 4. Simulate server disconnect/network issue by shutting down network.
+ 5. SD will enter READY state, upload is still queued
+ 6. Connect to network again
+ 
+ Expected results:
+ SD starts to upload the remaining part of the file
+ 
+ Actual results:
+ Upload fails completely - AQ_UPLOAD_ERROR, syncdaemon returns to IDLE state. 
File is not uploaded to personal storage.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/884959

Title:
  ActionQueue does not reset tempfile

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-client/+bug/884959/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to