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

Files set available offline but deleted on server repeatedly produce notifications #3394

Closed
Whisprin opened this issue Dec 19, 2018 · 2 comments

Comments

@Whisprin
Copy link

Actual behaviour

  • When a file which is set as available offline gets deleted from the server a notification is displayed: "the file is no longer available on the server"
  • Clicking the notification removes it without further details
  • The notification appears again after some time, and again, and again
  • Users cannot get rid of the notification permanently

Expected behaviour

When a file which is set available offline gets deleted from the server, the sync should:

  • display a notification once
  • upon clicking the notification inform the user which file(s) are not available anymore
  • update local cache and remove the available offline flag
  • not display the notification again

Steps to reproduce

  1. Create a parent folder
  2. Create a child folder inside the parent
  3. Create a file in the child folder
  4. Mark the file as offline in the app
  5. Delete the child folder server side
  6. Do not access the parent folder in the Android app
  7. Wait for the offline file sync to occur
  • A notification "the file is no longer available on the server" appears
  • Click the notification -> it disappears but nothing else happens
  • The notification appears again after some time, process repeats even through phone and server restarts etc
  • There's no possibility for users to remove the notification permanently unless they know which file has been removed on the server
  • The user doesn't learn which file or folder has been removed on the server

Environment data

Android version: 8.0.0

Device model: G8441

Stock or customized system: Stock

Nextcloud app version: 3.3.2 F-Droid

Nextcloud server version: 15.0.0

Logs

Web server error log

[19/Dec/2018:11:23:16 +0100] "GET /remote.php/webdav/<PATH_TO_FILE> HTTP/1.1" 404 278 "-" "Mozilla/5.0 (Android) ownCloud-android/3.3.2"

Logcat

12-19 11:23:15.622 21860 21895 I DownloadRemoteFileOperation: Download of <PATH_TO_FILE> to /storage/2DC5-0BCD/Android/media/com.nextcloud.client/nextcloud/tmp/<USER>@<SERVER>/<PATH_TO_FILE>: Local file does not exist
12-19 11:23:15.622 21860 21895 I DownloadFileOperation: Download of <PATH_TO_FILE> to /storage/2DC5-0BCD/Android/media/com.nextcloud.client/nextcloud/<USER>@<SERVER>/<PATH_TO_FILE>: Local file does not exist
@Whisprin Whisprin added the bug label Dec 19, 2018
@nextcloud-android-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #2281 ([Deleted]), #559 (Notifications), #1311 (Allow to delete notifications), #2374 (don't show a notification while keeping files available offline), and #2077 (File no longer available on the server).

@stale
Copy link

stale bot commented May 9, 2019

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@stale stale bot added the stale label May 9, 2019
@stale stale bot closed this as completed May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants