owncloud / ios-app

📱The all-new iOS app for ownCloud
https://owncloud.org/news/new-ios-app-ready-public-app-store/
GNU General Public License v3.0
213 stars 121 forks source link

[BUG] Unable to sync Excel and Word to Owncloud #1286

Open lucastherondel opened 11 months ago

lucastherondel commented 11 months ago

--> Excel and Word files stored in Owncloud don't sync after being opened using Files app and edited.

Steps to reproduce

  1. Open a Word file through Files app located in Owncloud (or through Owncloud app)
  2. Edit the file
  3. Close Word

Expected behavior

After the file is closed, it syncs with Owncloud. It's date and time of editing are updated. The newest version of the file shows up on the server and can be opened using another client.

Actual behavior

The file doesn't synchronize with Owncloud, and only the old version of the file shows up on the server. The newest version of the file is visible when opening it with Word, but it's date and time of editing don't change. Nothing shows up in the "Status" tab in Owncloud Ipad OS app.

Client

iOS version: 16.2 ownCloud app version: 12.0.3 Device model: iPad Pro 11 2nd gen

Server configuration

ownCloud version: 10.1.0.4

ownCloud log (data/owncloud.log)

I can't export logs directly from the Owncloud app, I can only check the "Enable logging" button. The only logs I could find using Settings app are from before the bug appearance.

tkintscher commented 9 months ago

I also see this behavior with the current ownCloud Infinite Scale server as backend.

lucastherondel commented 3 months ago

Hello, do you know if this has been fixed ? I'm still encountering an issue with Excel files for example, Owncloud doesn't want to start sync, regardless if I enable autosave or not Excel.

hosy commented 3 months ago

For me, it sounds like a File Provider problem. The iOS system schedules background jobs (like syncing) when a slot is available. This might not happen immediately and can take up to several minutes or even hours. Otherwise, the user has to open the ownCloud app, which brings synchronization to an active process.

lucastherondel commented 3 months ago

We're using the iPad Files app, and it works perfectly when you save for the first time a file in an owncloud directory through Files app. But when I edit this file and save changes, nothing happens (Owncloud app is opened). I'm not talking about minutes or hours, it doesn't sync even after a few days. If I create a copy of the existing file and overwrite it, then it works.

Edit : replacing the existing file doesn't work either, it deletes the original file. Then I can save as a new file.