Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing notes from Desktop Sync Client creates "File could not be synced" error #1451

Closed
MillironX opened this issue Jan 19, 2022 · 4 comments

Comments

@MillironX
Copy link

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

Editing notes that have been uploaded from the Nextcloud desktop sync client will result in a "File could not be synced due to an error" in the Nextcloud desktop sync client

To Reproduce

  1. Setup the Desktop sync client on one or more computers

  2. Create a new note on the Desktop computer

     echo "# Note From Desktop\n\nThe quick brown fox..." >> ~/Nextcloud/Notes/"Note From Desktop.txt"
  3. In the server Notes app, click "+ New Note," and type

    # Note From Server App
    
    The quick brown fox...
  4. In the Notes app on the phone, pull down to synchronize notes

  5. For both notes created above, open the note in the Notes app on the phone and add the text "Does this work?" and press the back button to save and synchronize the note

    Editing the note

  6. Wait for the change to be propagated to the Desktop sync client

  7. Bonus: Edit "Note From Server.txt" on the Desktop computer, then repeat steps 5-6, and the error will be thrown for both files

Expected behavior

The files

  • ~/Nextcloud/Notes/Note From Server App.txt
  • ~/Nextcloud/Notes/Note From Desktop.txt

should both say "Does this work?" as their last line on the Desktop computer. Note that if the edits in step 5 are made from within the Server app or another Desktop computer, then the expected behavior is observed.

Actual behavior

The Desktop sync client reports

Note From Desktop.txt could not be synced due to an error

Examining the error report in the settings dialog reveals

Note/Note From Desktop.txt: The downloaded file does not match the checksum, it will be resumed <CHECKSUM> != <CHECKSUM>

The server app reflects the correct state of the files, however.

Screenshots

Nextcloud Notification

Nextcloud Settings Dialog

Smartphone (please complete the following information)

  • Nextcloud Notes-Version (android app): 3.4.18
  • F-Droid or Play Store: F-Droid
  • Android-Version: 11 (LineageOS 18.1-20220104-microG-guacamole)
  • Device: OnePlus 7 Pro (GM1917/Guacamole)

Server

  • Nextcloud version: 21.0.1
  • Nextcloud Notes version (server app): 4.2.0
@stefan-niedermann
Copy link
Member

Hello and thank you very much for the very well described issue!

First of all, I doubt that this issue is actually caused by the Notes Android app - at least I can not imagine it 😉, therefore:

Are you able to reproduce this issue also, when you create the note from a Deskrop client, but edit it with the Notes server app?

@MillironX
Copy link
Author

For all my testing I guess I hadn't tried that. You are correct, creating by the Desktop client and editing it in the Server app in step 5 gives the same error. Which repo do you think I should refile this issue in? https://github.com/nextcloud/notes, https://github.com/nextcloud/desktop, or somewhere else?

@stefan-niedermann
Copy link
Member

https://github.com/nextcloud/notes should be the right place to post the issue 🙂

@MillironX
Copy link
Author

Transferred over to nextcloud/notes#806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants