nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

Nextcloud 25.0.9 with Nextcloud Office 7.1.6 does not work on Android (download instead of opening documents) #3182

Closed Mornsgrans closed 1 year ago

Mornsgrans commented 1 year ago

Describe the bug After installation of Nextcloud Office 7.1.6 and Collabora Online Builtin CODE Server 23.5.301 apps an office document .doc becomes downloaded and a dialog to select an app to open the file appears. (In Firefox on laptop it works as expected)

To Reproduce Steps to reproduce the behavior:

  1. Go to Nextcloud-app on Android device, select a folder containing office documents
  2. Tap on an office document file, which is not synchronized
  3. The file becomes synchronized (green circle with white hook appeas) and the dialog to select an app to open with (see screenshot below).

Expected behavior Expected, that the document becomes opened as in the Nextcloud Office 7.1.4 Collabora CODE 23.05.1.3-ucs1 and 23.05.2.2 Instances both work with Nextcloud Office 7.1.4 and Collabora Online Builtin CODE Server 23.5.104 apps

Screenshots grafik

Client details:

Server details

Operating system: Univention Corporate Server 5.0.4 and 5.0.5 (Debian GNU/Linux 10 (buster))

Web server: Apache 2.4.38-3+deb10u10A~5.0.3.202304251027

Database: PostgreSQL 9.6.24-0+deb9u3

PHP version: 7.3+69

Nextcloud version: 25.0.9

Version of the richdocuments app 7.1.6 and Collabora Online Builtin CODE Server 23.5.301

Version of Collabora Online Tested with Collabora CODE 23.05.1.3-ucs1 and 23.05.2.2 docker instances

xx.xx.xx.xx - - [16/Sep/2023:18:39:37 +0200] "PROPFIND /nextcloud/remote.php/dav/files/user/Des%20Admins%20Gebote.doc HTTP/1.1" 207 2240 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.26.0" #### Nextcloud log (data/nextcloud.log) ``` no coresponding log entry generated (last entry was 5 days ago) ``` #### Browser log ``` Insert your browser log here, this could for example include: No log in Android-App "Nextcloud" available ```
RuHitt commented 1 year ago

Hey, I noticed that too after the last app update. This is the relevant change that leads to the problem: https://github.com/nextcloud/richdocuments/pull/3154 I was able to solve it by manually changing the php line back.

Maybe someone with background knowledge can explain this and/or start a new backport. I don't know where the "mobile_editing" config variable has to be entered.

Best regards

juliusknorr commented 1 year ago

Thanks for reporting, just pushed a fix for this in https://github.com/nextcloud/richdocuments/pull/3184

Mornsgrans commented 1 year ago

I tried setting the "mobile_setting" config in my confuguration using the occ-command as mentioned in https://github.com/nextcloud/richdocuments/pull/3184 and it made the bahavior worse.

Independent of the value "yes" or "no" even in the Firefox browser always my local Libreoffice will be executed after click on the office document instead of opening in Nextcloud office. Opening documents in Nextcloud office on PC in the browser only works, if the entry "richdocuments mobile_editing" does not exist.

Mornsgrans commented 1 year ago

The issue still persists, now with Collabora Online - Built-in CODE Server 23.5.402 and Nextcloud Office 7.1.6 There still the document becomes downloaded and I am asked to select an Android app to open it. In my Browser under Windows it works.


Edit: With Collabore Online - Built-in CODE Server 23.5.503 and Nextcloud Office 7.1.8 it works now. - Thank you.