cryptomator / ios

Cryptomator for iOS
https://cryptomator.org
GNU General Public License v3.0
217 stars 27 forks source link

iOS file edits are lost (Apple Numbers, PDF markups) #240

Closed USER19464727 closed 8 months ago

USER19464727 commented 2 years ago

Please agree to the following

Summary

iOS edits in Apple Numbers revert back and changes are lost

What software is involved?

Volume Type

No response

Steps to Reproduce

  1. Have a vault on Apple iCloud that is unlocked indefinitely
  2. Open up an Apple Numbers spreadsheet within this vault
  3. Edit this spreadsheet with some changes, such as typing new information in a new cell
  4. Click "spreadsheets" to exit this spreadsheet and go back to looking at a list of possible files to open with Numbers
  5. Notice that the modification date/time has updated to the current date/time
  6. Turn off screen and do something else in the real world for a bit
  7. Get back on the same (or different) device, navigate to this file, and notice the modification date/time has reverted back, even after making sure the folder has updated, such as by swiping the screen down
  8. The changes made are no longer present and the modification date/time no longer matches the recent edits.

Expected Behavior

After editing an Apple Numbers spreadsheet and exiting, I expect the changes to be saved, especially when the modification date/time seems to indicate it has saved.

Actual Behavior

After editing an Apple Numbers spreadsheet, exiting, and returning later, the changes made were not saved. Sometimes the change do seem to save, but probably 75% of the time they do not.

Reproducibility

Intermittent

Relevant Log Output

No response

Anything else?

No response

tobihagemann commented 2 years ago

Since you've mentioned iCloud Drive, could you please check the following setting on your iPhone:

Just want to make sure that this is not a sync issue with iCloud Drive.

USER19464727 commented 2 years ago

Yes, iCloud Drive is enabled there.

USER19464727 commented 2 years ago

I now remember that I was having issues with a PDF and Apple Markup. I was marking up a PDF, closed it. I later came back and the changes did not save. Looking back now other changes I made are also not there. This is likely the same issue so I will update the title also.

phil1995 commented 2 years ago

Just to be sure, you have unlocked the full version of Cryptomator 2? Furthermore, it would be great if you could send us the log files. How to export the log files from the Cryptomator 2.0 iOS app is described in the documentation.

You can either post them here in the thread or email them to us at support@cryptomator.org. Please keep in mind that the logs can contain sensitive information like plaintext paths or filenames, etc.

USER19464727 commented 2 years ago

Yes both my iPhone and iPad use v2.3.0 currently. It's also on a MacBook, but that device is not used much and the vault is usually locked. I will export the logs I have right now, but I will also see if I can recreate the issue in a new Vault with a few test files to see if it happens there in a simplified test scenario where I can also have a better time stamp for when the issue occurred.

USER19464727 commented 2 years ago

I emailed the logs I had. My new testing is, of course, not recreating the issue. Considering this, maybe it was related to large caches that had not been cleared for weeks/months on the original vault. Or maybe something to do with the indefinite lock? In my new test I kept opening a file on both devices, closing, reopening, editing, and no problem occurred. I'll leave logging enabled in case it happens again and I'll make note of the time.

USER19464727 commented 2 years ago

I recreated the issue again today and e-mailed the debug log. This time I was using a clean (newly created) vault in iCloud containing only 2 files. One file was a copy from my personal vault and the other a brand new file. Both files had the issue today, whereas before today I had edited them at least 9 times each without issue. It seems interesting that both had the issue today, whereas neither had an issue until now. If I had to guess it seems the issue might begin occurring after the vault has been unlocked for a moderate amount of time (weeks)? The behavior is disconcerting. After I made an edit the Numbers sheet did not show an updated modification date/time in the file explorer. However, if I opened up the Numbers sheet, the edit was present. Then, I made another edit. This time it updated the modification date/time. I clicked to a different vault and then back to this test one. It showed the old modification date/time and upon opening the file, my changes were lost. I hope the logs are of use in diagnosing this issue.

USER19464727 commented 2 years ago

I also notice now that one of the files I had been working on has many duplicates that were saved the last time I worked on the file. It's odd because the modification time is not the date/time I was working on the file last. It was either from the time before that or otherhow erroneous.

USER19464727 commented 2 years ago

EC91752A-0560-4ABE-9DFB-240916ACB44A

USER19464727 commented 2 years ago

The two things in this issue and Issue #252 might all be related. Basically I'm working on a file, such as a Numbers spreadsheet and when I finish or navigate away, it says "Content Unavailable". Every time. I can only see folder contents again if I go back to the Vault and navigate back to the folder I was in. At some point later there might be (but not always) duplicated files created (like above). The changes I made to the file might or might not be saved. This combination of issues is making CM basically unusable for me at the moment. I did not seem to have these issues upon first rollout of CM2, although I don't know how much editing I was doing with Apple files. I am sending some more logs.

USER19464727 commented 1 year ago

Are other iOS users not having all of these issues? My devices are pretty standard and on the latest version. I created another fresh vault and have a single Numbers file in it that I've been using. I opened it the other day and, again, all my edits were lost. CM is completely unusable for me at the moment. I'm curious why my situation is (apparently) unique?

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.