Skip to content

Renaming files triggers a re-download in the client #201

Closed

Description

@allo-

Steps to reproduce:

  1. Setup some sync with the linux client 1.1.4
  2. Upload some file
  3. change the name of the file in the webinterface

What happens:

  1. The File is deleted in sync folder
  2. The File with the new name is downloaded

What i would have expected:

  1. The client is triggered to rename the file, without any retransfer of the file.

And of course there should at least be no situation, where the old file is deleted, but the new one is not downloaded, yet.

Activity

  1. RandolfCarter commented on Dec 27, 2012

    @RandolfCarter

    As far as I understand, this would require conceptual changes in the server and/or the client: Current server implementations do not track a rename (and therefore can't notify clients of one); and since the client doesn't check the file contents, it doesn't have the possibility to detect renames.

  2. allo- commented on Dec 27, 2012

    @allo-
    Author

    Yeah, i think so. But this is a killer feature, which i would expect from a file syncing solution.
    A good starting point could be to look at the rsync algorithms, including the fuzzy checksums and such stuff.

  3. danimo commented on Jul 8, 2013

    @danimo
    Contributor

    @dragotin this can be closed now, right?

  4. dragotin commented on Jul 8, 2013

    @dragotin
    Contributor

    I thought so, with @ogoffart 's patch. But I just tried and the new file ist still downloaded.

  5. ogoffart commented on Jul 8, 2013

    @ogoffart
    Contributor

    We would need a concept of unique ID per file on the server, just like we have inode on the client.
    Then it would require important changes in the client as the fact that rename can only happen one way makes it much easier.

  6. alecz20 commented on Jul 27, 2013

    @alecz20

    The files can be tracked by hashes (e.g. sha1), and stored in a database.

    Alterantively, using inotify can inform the client of such file changes.

    Is there a plan for implementing this? Dropbox, for example, not only detects renames, but it also detects when copies are made so that a copy will be made locally from an existing file rather than re-downloading the same file

  7. allo- commented on Jul 27, 2013

    @allo-
    Author

    this should be combined. inotify should prevent hashing, when its not needed, but when a file was moved while mirall is not running, it should first ask the server, if the hash is known and send some move request.

    can possibly be combined with:

    • deduplication
    • incremental updates (using some algorithm, which can split the file, until the common parts have the same hash and only upload the other parts)
  8. dragotin commented on Oct 21, 2013

    @dragotin
    Contributor
  9. ogoffart commented on Dec 10, 2013

    @ogoffart
    Contributor

    owncloud 6 and mirall 1.5 implement support for server moves.

  10. atroxix commented on May 30, 2014

    @atroxix

    Not sure I'm writing this under the correct issue - should I open a new bug report instead?

    I use ownCloud 6.0.3 as server and 1.6.0rc3 as client (both on OpenSUSE 13.1), but renamed files/folders are detected 50% of times at best. Is there something yet to be improved in this area?

  11. atroxix commented on Jul 4, 2014

    @atroxix

    It still happens very often, basically most of the times. Using both servers 6.0.3 and 7.0beta1, and Mirall 1.6.1.

    Can the issue be re-opened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions