Skip to content

Conflicts for identical files #10194

Open

Description

@alexmo1997

Using the latest Nextcloud app from F-Droid (20220421), I recently (probably since I use android 12 but it might be unrelated) get a lot of conflict notifications where either the local file is 0 bytes (mostly from seedvault, I don't think this should happen) and from images where the local and server image are identical. This is really annoying as there isn't even a way to say that all conflicts should be resolved by taking the server version e.g.. When you have 50 conflicts, that's a lot of work.
So I'm filing that as a bug report, as I think that this behaviour is not intended to be this way, I hope it can be fixed.
Thanks in advance!
Alex

Activity

  1. AlvaroBrey commented on May 9, 2022

    @AlvaroBrey
    Member

    So I'm filing that as a bug report, as I think that this behaviour is not intended to be this way

    Unfortunately that's now how bug reports work. This is clearly asking for an enhancement on conflict handling.

  2. gampam2000 commented on May 10, 2022

    @gampam2000

    I also think this is a Bug. I activated auto upload and now the app creates a lot of notifications about conflicts. After 24 notification it stops uploading. I think the conflict are generated because some upload tasks crashed. After resolving some conflicts it starts uploading again, but stops shortly after. The more conflicts need to be resolved. The option to auto-resolve the conflicts seems not to work.

  3. alexmo1997 commented on May 10, 2022

    @alexmo1997
    Author

    So I'm filing that as a bug report, as I think that this behaviour is not intended to be this way

    Unfortunately that's now how bug reports work. This is clearly asking for an enhancement on conflict handling.

    Part of the reason why I filed it as a bug was that this didn't happen before. I used to not have to worry about conflicts at all. But it the last two weeks, I have had this issue every couple of days.

  4. brianjmurrell commented on Oct 7, 2022

    @brianjmurrell

    It is very clearly a bug when a conflict is raised when the local and server file are identical. This is not a conflict, it's simply a duplicate that should be ignored. I.e. it's a sync NOOP.

  5. AlvaroBrey commented on Oct 7, 2022

    @AlvaroBrey
    Member

    @alexmo1997 are you still seeing this issue? If so, please either close it and open a bug report, or add the required fields from that link into this issue.

    p.s: I originally didn't understand your report correctly and the title was misleading, hence I misclassified it as an enhancement. sorry about that.

  6. changed the title [-]handle conflicts in a better way[/-] [+]Conflicts for identical files[/+] on Oct 7, 2022
  7. added
    needs info
    and removed on Oct 7, 2022
  8. alexmo1997 commented on Oct 8, 2022

    @alexmo1997
    Author

    That's hard to say. It didn't happen very recently but even before, this didn't really happen regularly and was rather unpredictable.
    Was there any change to the conflict resolution logic or something related that might have fixed this issue?

    I can say my current Nextcloud app version is 20221001 on f-droid (and the original app version was 20220421) and I have to ask where I can see my nextcloud server version (I'm not hosting it myself), but I think it has an apache reverse proxy
    My phone is a Pixel 4 with GrapheneOS, but it also happened to a friend of mine on stock android (Pixel 5 I think).

  9. removed
    needs info
    on Oct 8, 2022
  10. oddstr13 commented on Oct 13, 2022

    @oddstr13

    I am seeing duplicate notifications both for upload failed (also does not clear when the upload is successfully completed after retries), and upload conflicts (presumably from when the file upload/move into place completed, but the app wasn't notified)

    Version 3.21.2 on Fairphone 4

    Seems to happen more often when switching networks (4G - WiFi), or on spotty WiFi (moving out of coverage)

  11. brianjmurrell commented on Oct 14, 2022

    @brianjmurrell

    I most definitely continually see conflicts being raised when identical files are on the server and local.

    To be clear, this is not a case of nextcloud trying to re-upload previously uploaded files from the same device but a case where the remote file already exists, maybe because it was uploaded from a different device at a different time. But this really still should not cause a conflict to be raised for an identical file on the server and locally.

  12. added
    feature: transfers
    on Oct 15, 2023
  13. Heistergand commented on Oct 19, 2023

    @Heistergand

    This might be a duplicate of issue #11974

  14. ptandler commented on Nov 9, 2023

    @ptandler

    #11974 talks about an issue in 3.26.0, this one here happened also on earlier versions.

    I think it would be very helpful if the server sends some hash the client can use to compare if both files are identical.

  15. added
    hotspot: sync conflicts
    on Nov 16, 2023
  16. Nrwh1 commented on Oct 12, 2026

    @Nrwh1

    Still having this issue to this day. Drives me crazy.

  17. xO-ox-ai commented on Nov 26, 2026

    @xO-ox-ai

    I tested a narrower end-to-end encrypted case while working on #18028. With two copies of the same file, an upload to an encrypted destination can be reported as a conflict even when the file contents match. The integrated QA fix on Android 17 with Server 35.0.2 was able to skip the identical upload after comparing the authenticated file contents.

    For this case, the acceptance criterion is to complete an identical upload without prompting the user or replacing the remote file. Same-name files that differ, and files whose contents cannot be verified, should still follow the existing conflict flow. This is separate from displaying a thumbnail in an actual conflict, as discussed in #17242.

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

    bugfeature: auto uploadfeature: transfershotspot: sync conflicts

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions