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 not uploaded after external edit (and reset to previous contents) #3125

Open
Virsacer opened this issue Oct 25, 2024 · 21 comments
Open

Comments

@Virsacer
Copy link

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

@essig
Copy link

essig commented Oct 27, 2024

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...

@Virsacer
Copy link
Author

Still happening with App version 6.1.1.1

@essig
Copy link

essig commented Oct 31, 2024

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

@marinofaggiana
Copy link
Member

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

@Virsacer
Copy link
Author

Virsacer commented Nov 7, 2024

I have been edited files with Excel for month now...
See also #3002 where it you fixed an similar error.

@Virsacer
Copy link
Author

@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
Copy link
Author

Here is the complete process:

Image

Image

Image

Image

Image

Image

Image

@buehlerfabian
Copy link

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

@germanyague
Copy link

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.

@Pandatective
Copy link

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.

@essig
Copy link

essig commented Nov 28, 2024

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...

@Virsacer
Copy link
Author

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

@m3g33
Copy link

m3g33 commented Nov 29, 2024

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).

@MichiS97
Copy link

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

@nic-flenghi
Copy link

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

@marinofaggiana
Copy link
Member

please try the version 6.1.8 when available on TestFlight

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

@marinofaggiana marinofaggiana self-assigned this Dec 5, 2024
@Virsacer
Copy link
Author

Virsacer commented Dec 5, 2024

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

@essig
Copy link

essig commented Dec 6, 2024

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...

@buehlerfabian
Copy link

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.

@Pandatective
Copy link

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!

@dertuxmalwieder
Copy link

Version 6.1.8 breaks the Orgro app in amazing new ways, it seems that the folder Notizen/ isn't a folder anymore?

image

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

10 participants