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

Cached files inside favorited folders fail to update #904

Open
the-sane opened this issue Jul 10, 2019 · 2 comments
Open

Cached files inside favorited folders fail to update #904

the-sane opened this issue Jul 10, 2019 · 2 comments

Comments

@the-sane
Copy link

the-sane commented Jul 10, 2019

Expected behaviour

When the app is opened and you navigate to a favorited subfolder, cached (previously opened) files inside that subfolder should automatically download any changes, just like files inside non-favorited subfolders do.

Actual behaviour

Cached (previously opened) files inside a favorited subfolder do not update themselves with new versions. A manual sync needs to be forced.

This bug is made more severe by the fact that no conflicting file management is performed if you make edits to one of these outdated files. I elaborate on this in the Other Notes section below. I have also created a feature request for conflict resolution which would have helped mitigate this issue. (#903)

Steps to reproduce

  1. Create a folder inside your main Nextcloud file store. Add it to your favorites.
  2. Create a text file inside this subdirectory.
  3. Verify that the file has been cached. It should have the green check mark.
  4. Tap the back arrow to return to your main Nextcloud directory. Required. Without this step, the bug does not happen
  5. Exit the iOS app by returning to your iOS home screen.
  6. Edit the test file from another device and make sure it has synced up to your Nextcloud server.
  7. Re-open the iOS app and navigate into the test subfolder. Notice that the text file's thumbnail has updated to display the changes.
  8. View the test file and notice that the changes were not downloaded. You are viewing an outdated version of this file.

Other notes

  • Step 4 is required to reproduce this bug. If the app is sent to the background and re-opened directly to the subfolder, changes to the file will be correctly re-downloaded. It only appears to happen when the Nextcloud app re-opens to your root directory, either because you tapped the back arrow before exiting the app or you force quit it.
  • If, at step 8, you edit the outdated file, the app ignores the fact that different changes have been made to both the local cached copy and the server's copy of the file. Your local iOS edits will be synced up to your Nextcloud server, overwriting the version stored there . No conflicting file management will happen and the edits from your other device will be lost.
  • I have been able to reproduce this reliably for favorited folders, but it does not seem to happen for regular non-favorited folders. Whether the test file itself is favorited or not doesn't seem to have an effect on this bug either way; it appears to only be caused by favorited folders.

iOS version

12.3.1

App version

2.23.7.9

Server configuration

Operating system:
Ubuntu Server 18.04

Web server:

Database:
mysql 5.7.26

PHP version:
7.2.19

Nextcloud version: (see Nextcloud admin page)
16.0.2 installed from snap

@the-sane
Copy link
Author

@marinofaggiana I'm double checking all my recent bug reports against beta v2.23.8.15 just in case. Confirming that this bug still happens, although I had to wait longer for the thumbnail to update in step 7. I ended up viewing the file and returning to the list a couple times before the thumbnail updated. It was probably just my nextcloud server or my network being slow to respond though. Curiously, non-favorited folders receive file updates almost instantly. Aside from that peculiarity, the bug happened exactly as outlined above.

I know this is probably a low priority since it only affects favorited folders, but it essentially renders favorited folders useless unless you want to experience data loss.

@hanzukun
Copy link

I experience same problem, so can confirm this bug.

It is unfortunately also not possible to manually refresh/reload the file list contents (by drawing from top of screen downwards), which can be done on other folders. The workaround is to clear the cache in the app settings.

App: 2.24.1.0
Nextcloud Server: 15.0.12
OS: Ubuntu 16.04 with Apache, mysql (mariadb) 15.1, php 7.

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