ios icon indicating copy to clipboard operation
ios copied to clipboard

Files not uploaded after external edit (and reset to previous contents)

Open Virsacer opened this issue 2 years ago • 25 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

This behaviour started today after updating the iOS App. Tested with .xlsx and .txt

Steps to reproduce

  1. Click share on a file
  2. Click the app to edit the file (for example Excel)
  3. Edit the file with the app and save it

Expected behaviour

Upload the new version of the file as is

Actual behaviour

There is a message that files are beeing uploaded. The edited file is not visible in the list of files any more. Nothing happens. When refreshing (pulling down) the upload message disappears. The edited file is still not visible. When closing and opening the app and refreshing the edited file is visible again, but shows "edited 16 hours ago" Nothing is synced and when I start to edit again, the file has the previous contents.

Logs

2024-10-25 08:23:15 [INFO] Clear log with level 1 Nextcloud Hydrogen for iOS 6.0.0.36 © 2024
2024-10-25 08:23:19 [INFO] Scene will resign active
2024-10-25 08:23:21 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:23:21 [INFO] Scene did become active
2024-10-25 08:23:21 Network request started: GET https://www.example.com/CLOUD/status.php
2024-10-25 08:23:21 [INFO] Automatic upload, no new assets found [Init Auto Upload]
2024-10-25 08:23:21 [INFO] Initialize Auto upload with 0 uploads
2024-10-25 08:23:21 Network response request: https://www.example.com/CLOUD/status.php, result: success(170 bytes)
2024-10-25 08:23:21 Network request started: GET https://www.example.com/CLOUD/ocs/v2.php/cloud/user
2024-10-25 08:23:21 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(1931 bytes)
2024-10-25 08:23:22 Network response request: https://www.example.com/CLOUD/ocs/v2.php/cloud/user, result: success(1093 bytes)
2024-10-25 08:23:22 Network request started: No request created yet.
2024-10-25 08:23:22 Network request started: GET https://www.example.com/CLOUD/index.php/avatar/Username/384
2024-10-25 08:23:22 Network request started: REPORT https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:23:22 Network request started: GET https://www.example.com/CLOUD/ocs/v2.php/apps/files/api/v1/directEditing
2024-10-25 08:23:22 Network response request: https://www.example.com/CLOUD/ocs/v2.php/apps/files/api/v1/directEditing, result: success(100 bytes)
2024-10-25 08:23:22 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(19503 bytes)
2024-10-25 08:23:22 [INFO] Synchronize Favorite
2024-10-25 08:23:23 [INFO] Start File Provider session with level 1 Nextcloud Hydrogen for iOS 6.0.0.36 © 2024 (File Provider Extension)
2024-10-25 08:23:23 [INFO] Start File Provider session with level 1 Nextcloud Hydrogen for iOS 6.0.0.36 © 2024 (File Provider Extension)
2024-10-25 08:23:23 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username/FileITriedToEdit.xlsx
2024-10-25 08:23:23 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username/FileITriedToEdit.xlsx, result: success(2062 bytes)
2024-10-25 08:23:24 [INFO] Scene will resign active
2024-10-25 08:23:25 [INFO] Start File Provider session with level 1 Nextcloud Hydrogen for iOS 6.0.0.36 © 2024 (File Provider Extension)
2024-10-25 08:23:25 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username/FileITriedToEdit.xlsx
2024-10-25 08:23:25 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username/FileITriedToEdit.xlsx, result: success(2062 bytes)
2024-10-25 08:23:26 [INFO] Scene did enter in background
2024-10-25 08:23:26 [INFO] Auto upload: true
2024-10-25 08:23:26 [INFO] Auto upload in background: true
2024-10-25 08:23:36 Network start upload file: https://www.example.com/CLOUD/remote.php/dav/files/Username/FileITriedToEdit.xlsx
2024-10-25 08:23:37 [INFO] Scene will enter in foreground
2024-10-25 08:23:37 [INFO] Scene did become active
2024-10-25 08:23:37 Network request started: GET https://www.example.com/CLOUD/status.php
2024-10-25 08:23:37 [INFO] Automatic upload, no new assets found [Init Auto Upload]
2024-10-25 08:23:37 [INFO] Initialize Auto upload with 0 uploads
2024-10-25 08:23:37 Network response request: https://www.example.com/CLOUD/status.php, result: success(170 bytes)
2024-10-25 08:23:37 Network request started: No request created yet.
2024-10-25 08:23:38 Network response request: https://www.example.com/CLOUD/ocs/v2.php/cloud/user, result: success(1093 bytes)
2024-10-25 08:23:38 Network request started: No request created yet.
2024-10-25 08:23:38 Network request started: No request created yet.
2024-10-25 08:23:38 Network request started: REPORT https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:23:38 Network request started: No request created yet.
2024-10-25 08:23:38 Network response request: https://www.example.com/CLOUD/ocs/v2.php/apps/files/api/v1/directEditing, result: success(100 bytes)
2024-10-25 08:23:38 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(19503 bytes)
2024-10-25 08:23:38 [INFO] Synchronize Favorite
2024-10-25 08:23:58 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:23:59 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(1931 bytes)
2024-10-25 08:23:59 Network request started: No request created yet.
2024-10-25 08:23:59 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(22222 bytes)
2024-10-25 08:24:43 [INFO] Scene will resign active
2024-10-25 08:24:45 [INFO] Scene did enter in background
2024-10-25 08:24:45 [INFO] Auto upload: true
2024-10-25 08:24:45 [INFO] Auto upload in background: true
2024-10-25 08:24:45 [INFO] Start session with level 1 Nextcloud Hydrogen for iOS 6.0.0.36 © 2024
2024-10-25 08:24:45 [INFO] Account active Username Username
2024-10-25 08:24:45 Counter cache image: 9711
2024-10-25 08:24:45 Network request started: HEAD https://push-notifications.nextcloud.com
2024-10-25 08:24:46 [INFO] Scene will enter in foreground
2024-10-25 08:24:46 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:24:46 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(1950 bytes)
2024-10-25 08:24:46 [INFO] Scene did become active
2024-10-25 08:24:46 Network request started: GET https://www.example.com/CLOUD/status.php
2024-10-25 08:24:46 [INFO] Automatic upload, no new assets found [Init Auto Upload]
2024-10-25 08:24:46 [INFO] Initialize Auto upload with 0 uploads
2024-10-25 08:24:47 Network response request: https://www.example.com/CLOUD/status.php, result: success(170 bytes)
2024-10-25 08:24:47 Network request started: No request created yet.
2024-10-25 08:24:47 Network response request: https://www.example.com/CLOUD/ocs/v2.php/cloud/user, result: success(1093 bytes)
2024-10-25 08:24:47 Network request started: No request created yet.
2024-10-25 08:24:47 Network request started: No request created yet.
2024-10-25 08:24:47 Network request started: No request created yet.
2024-10-25 08:24:47 Network request started: No request created yet.
2024-10-25 08:24:47 Network response request: https://www.example.com/CLOUD/ocs/v2.php/apps/files/api/v1/directEditing, result: success(100 bytes)
2024-10-25 08:24:47 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(19503 bytes)
2024-10-25 08:24:47 [INFO] Synchronize Favorite
2024-10-25 08:24:48 Network request started: PROPFIND https://www.example.com/CLOUD/remote.php/dav/files/Username
2024-10-25 08:24:48 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(1931 bytes)
2024-10-25 08:24:48 Network request started: No request created yet.
2024-10-25 08:24:48 Network response request: https://www.example.com/CLOUD/remote.php/dav/files/Username, result: success(22222 bytes)

Reasoning or why should it be changed/implemented?

Unable to change files / loosing data from edits

Environment data

iOS version: e.g. iOS 18.0.1

Nextcloud iOS app version: 6.0.0.36

Server operating system: Debian 12

Web server: Apache

Database: MySQL

PHP version: 8.2.24

Nextcloud version: 30.0.1

Virsacer avatar Oct 25 '24 06:10 Virsacer

I can completely confirm the issue. For simplicity, use a TXT document. After editing, the change date does not change. Instead, the "old" document from server is offered for download...

essig avatar Oct 27 '24 20:10 essig

Still happening with App version 6.1.1.1

Virsacer avatar Oct 31 '24 15:10 Virsacer

Yes, can confirm, the issue is still there...

essig avatar Oct 31 '24 17:10 essig

Hi you can't share a file and modify it, the iOS works with a sandbox so is not possible, you can modify a file only with iOS Files app

marinofaggiana avatar Nov 07 '24 11:11 marinofaggiana

I have been edited files with Excel for month now... See also https://github.com/nextcloud/ios/issues/3002 where it you fixed an similar error.

Virsacer avatar Nov 07 '24 11:11 Virsacer

@marinofaggiana can you please have a look? 6.1.6.1 is still broken. It was working fine with 5.5.5.0 and broke with 6.0.0

Virsacer avatar Nov 12 '24 10:11 Virsacer

Here is the complete process:

Image

Image

Image

Image

Image

Image

Image

Virsacer avatar Nov 14 '24 23:11 Virsacer

It's not only for xlsx files. I have the exact same problem with a txt file that is modified by another app.

buehlerfabian avatar Nov 15 '24 07:11 buehlerfabian

It doesn’t even have to be an external app. If you open a PDF in iOS files app and draw something on it, the drawing never gets uploaded to the cloud.

germanyague avatar Nov 17 '24 00:11 germanyague

I have experienced the same issue with the version 6.1.6 when saving files via the iOS Files App (in my case, it's with Clip Studio). Even with newly created documents, it does sync it at first, but whenever I modify the documents afterward, the newer version of the files doesn't upload.

The thing is I do see within the app the upload is in progress for several minutes, but whenever I refresh the page within the iOS app, the message is gone and the new version of the file haven't been uploaded without any error messages, losing my progress in the process. Looking at the logs from my server and within the app, I see nothing that would suggest why that happened.

I've managed to install the version 5.5.5 of the app on my iPad and I don't have this issue. Looking at the logs while running this version, I don't see a difference between both versions that would explain the difference of behavior.

Pandatective avatar Nov 17 '24 23:11 Pandatective

When will you adress this issue? It is still there in v6.1.7 (6). The use of Nextcloud iOS app is very limited for me without the possibility to edit files. I use Collabora for editing spreadsheets and Quine for editing TiddlyWikis. Both apps have the same problem...

essig avatar Nov 28 '24 09:11 essig

This bug is really annoying I need to edit files every day and now I have to make screenshots (luckyly the do still upload) to be able to edit later when I am at a pc

@marinofaggiana Please help us

Virsacer avatar Nov 28 '24 10:11 Virsacer

This bug occurs for me on server versions 29.0.9 and 30.0.2 and on iOS versions 15.8.3 and 18.1.1 using app version 6.1.6 and 6.1.7 (6).

m3g33 avatar Nov 29 '24 11:11 m3g33

Just wanted to confirm that I have the exact same issue since updating my iPad to 18.1.1...

MichiS97 avatar Nov 30 '24 17:11 MichiS97

As a workaround, I was able to edit and save files on iOS 18.1.1 using WebDAV instead of the Nextcloud iOS app.

nic-flenghi avatar Dec 01 '24 03:12 nic-flenghi

please try the version 6.1.8 when available on TestFlight

https://testflight.apple.com/join/RXEJbWj9

marinofaggiana avatar Dec 05 '24 15:12 marinofaggiana

With 6.1.8.0 it is working again :-) Thank you very much!

Virsacer avatar Dec 05 '24 22:12 Virsacer

Hi, the file provider seams to work properly again, i.e. syncs local edits, tested with Collabora und Quine. One point: the change date/time does not update immediately. I have to change a folder or switch to another app and go back, to see the updated change date/time...

essig avatar Dec 06 '24 07:12 essig

The 2 issues i was having are also gone with 6.1.8. (updating an existing file using the Goodnotes app and changing a textual todo file using the app Swiftodo). Thanks a lot.

buehlerfabian avatar Dec 06 '24 15:12 buehlerfabian

please try the version 6.1.8 when available on TestFlight

https://testflight.apple.com/join/RXEJbWj9

I've tried yesterday and this morning and I can confirm it's working properly with this version when saving projects from Clip Studio.

Thank you!

Pandatective avatar Dec 06 '24 16:12 Pandatective