Skip to content

Clear downloadinfo/blacklist when pending file was deleted #2057

Closed

Description

@PVince81

The sync client should not keep temporary files and their downloadinfo/blacklist entries when they were deleted on the server and the sync client did a PROPFIND on that folder.

Steps to reproduce

  1. Enable encryption
  2. Create a folder "clientsync/test"
  3. Setup the sync client to sync the "clientsync" folder
  4. With the web UI, upload a big file into "clientsync/test/testfile.dat"
  5. Prevent the sync client to finish downloading the file, goal is to force it to resume the download
  6. Close the sync client
  7. With the web UI, move "clientsync/test/testfile.dat" to "/testfile.dat".
  8. Open the sync client: it should notice that the folder "clientsync/test" has changed (etag).
  9. Move "/testfile.dat" back to "clientsync/test".

Expected result

Sync client downloads full file.
At step 8 the sync database should not contain any information of "clientsync/test/testfile.dat"

Actual result

At step 8 the sync database still contains a reference to "clientsync/test/testfile.dat" in the "downloadinfo" and "blacklist" tables.
Due to this info, the sync client will send a range request to the server.
(note that this causes an error with encryption + range requests which will be filed separately. If you see the error, it is proof that the range request was sent)

Note that if you move "/testfile.dat" into "/clientsync/testfile.dat" instead of the old location, it will properly fully download the file instead of resuming.

More information

ownCloud 7.0.1
Sync client version 1.6.2

As discussed with @guruz on IRC

Activity

  1. PVince81 commented on Aug 13, 2014

    @PVince81
    Author

    If the file was moved to another visible location (visible for the sync client) instead of deleted, the downloadinfo/blacklist tables should be cleared as well (should be easier than updating their paths).

  2. guruz commented on Aug 13, 2014

    @guruz
    Contributor
  3. guruz commented on Aug 29, 2014

    @guruz
    Contributor
  4. PVince81 commented on Sep 24, 2014

    @PVince81
    Author

    The blacklisted file was correctly removed from the blacklist and downloadinfo tables after I deleted it. The temporary file is also gone.

    Verified in mirall-1.7.0nightly20140924

  5. removed
    ReadyToTest
    on Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions