CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.89k stars 711 forks source link

Android: Problem opening ODT from file manager: No app message #4416

Open TomPortman opened 2 years ago

TomPortman commented 2 years ago

Describe the bug The problem is that despite Collabora being installed (v. 6.4.14), trying to open an ODT from the file manager results in a message saying that no app can open this type of file.

To Reproduce Steps to reproduce the behavior:

  1. Get an ODT file on the smartphone
  2. Go into the file explorer (Samsung My Files, v. 13.0.00.484)
  3. Click on the ODT file
  4. See error mentionned below and attachment

Expected behavior Collabora is opened and the ODT file displayed, or a dialog asks what app to use to open the file. Trying the same thing but with an ODS file works, a dialog asks whether to use "Collabora Office" or "Office" (since "Office" is also installed) and whether to use it "Just once" or "Always".

Actual behavior An error message gets displayed:

Search the Play Store?
You don't have any apps that can open this type of file. You can search for one in the Play Store.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information)

Additional context

  1. Trying to open an ODS works on this same phone.
  2. Opening the same ODT from within Collabora works also.
  3. Error message: Screenshot_20220315-144244_My Files
paride commented 2 years ago

I can confirm this happens on a Samsung Galaxy Tab A8 running Android 11 and Collabora Office 21.11.3.6.

Tex2002ans commented 10 months ago

Hey @TomPortman and @paride ,

Can you retest this on the latest Collabora app? (There's been quite a few major releases/overhauls since v6.4.)


I tested on:

COOLWSD version: 23.05.5.2 (git hash: 8fe1f0fe) LOKit version: Collabora Office 23.05.5.2 (git hash: a2baff6)

on my OnePlus 6T (Android 11).

I went to my file manager and was able to open ODT/ODS/ODP files, and "Collabora Office" appeared as an app choice.

TomPortman commented 10 months ago

Le 07/02/2024 à 04.45, Tex2002ans a écrit :

Hello,

Can you retest this on the latest Collabora app? (There's been quite a few major releases/overhauls since v6.4.)


I tested on:

COOLWSD version: 23.05.5.2 (git hash: 8fe1f0f
<https://github.com/CollaboraOnline/online/commit/8fe1f0fe2c4536b92af864ff1a232d830de56031>)
LOKit version: Collabora Office 23.05.5.2 (git hash: a2baff6)

on my OnePlus 6T (Android 11).

I went to my file manager and was able to open ODT/ODS/ODP files, and "Collabora Office" appeared as an app choice.

I just tested it on a Samsung Galaxy S20 Ultra 5G running Android 13, Collabora 23.05.5.2 and Nine Work 4.9.5b (this is our e-mail app).

Trying to open a test ODT, ODS and ODP from within the Nine Work app (the files are attachments to a mail) results in the mail app proposing to use the Collabora app to open the ODT and ODS, but not the ODP. However, once the 3 files are downloaded, trying to open them from the file manager (Samsung, v14.4.00.2) it proposes to use the Collabora app for all 3 of them. I do not know if this different behavior is because of the Collabora app or the Nine Work app, though.

During this test I also encountered the following behavior which seems to be a bug:

  1. I open (for example from the file manager app) the ODT in Collabora.

  2. Collabora starts and displays the file.

  3. I switch back to the file manager app and open the ODS in Collabora (but this can also be another file or even the ODT).

  4. Collabora displays "Exiting..." and that's it, I have to reopen the ODS a second time to get it.

Best regards

Thomas

-- Thomas Portmann | e-mail: @.*** Tribunal fédéral Suisse | direct: +41 (0)21 318 9876 Av. du Tribunal fédéral 29 | tel: +41 (0)21 318 9111 1005 Lausanne | fax: +41 (0)21 323 3700

Tex2002ans commented 9 months ago

I just tested it on a Samsung Galaxy S20 Ultra 5G running Android 13, Collabora 23.05.5.2 and Nine Work 4.9.5b (this is our e-mail app).

Trying to open a test ODT, ODS and ODP from within the Nine Work app [...] results in the mail app proposing to use the Collabora app to open the ODT and ODS, but not the ODP.

Fantastic. Thank you for this info.

So if opening from mail app:

Opening from (Samsung) File Manager:

And on that not working ODP, you still get the same error as in first post:

Search the Play Store? You don't have any apps that can open this type of file. You can search for one in the Play Store.


During this test I also encountered the following behavior which seems to be a bug:

  1. I open (for example from the file manager app) the ODT in Collabora.
  2. Collabora starts and displays the file.
  3. I switch back to the file manager app and open the ODS in Collabora (but this can also be another file or even the ODT).
  4. Collabora displays "Exiting..."

And that's it, I have to reopen the ODS a second time to get it.

Hmmm... Mind submitting this one as a separate Github Issue?

This seems similar to an odd one mentioned recently in the:

The user was opening ODT/ODS/ODP documents from an email/file manager, then wasn't able to see on Collabora's home page (or share).

Definitely some odd interactions between opening in:

TomPortman commented 9 months ago

Le 08/02/2024 à 09.35, Tex2002ans a écrit :

I just tested it on a Samsung Galaxy S20 Ultra 5G running Android
13, Collabora 23.05.5.2 and Nine Work 4.9.5b (this is our e-mail app).

*Trying to open* a test ODT, ODS and ODP *from within the Nine Work
app [...] results in the mail app proposing* to use the Collabora
app to *open the ODT and ODS, but not the ODP.*

Fantastic. Thank you for this info.

So if opening from mail app:

  • ODT = fine
  • ODS = fine
  • ODP = no.

Opening from (Samsung) File Manager:

  • ODT = fine
  • ODS = fine
  • ODP = fine

And on that not working ODP, you still get the same error as in first post:

Search the Play Store?
You don't have any apps that can open this type of file. You can
search for one in the Play Store.

No, it just proposes to open it with either "ZArchiver (ZArchiver Text)" or "ZArchiver" (ZArchiver 1.0.9 is installed).


During this test I also encountered the following behavior which
seems to be a bug:

 1. I open (for example from the file manager app) the ODT in Collabora.
 2. Collabora starts and displays the file.
 3. I switch back to the file manager app and open the ODS in
    Collabora (but this can also be another file or even the ODT).
 4. Collabora displays "Exiting..."

And that's it, I have to reopen the ODS a second time to get it.

Hmmm... Mind submitting this one as a separate Github Issue?

Just did that: https://github.com/CollaboraOnline/online/issues/8219

This seems similar to an odd one mentioned recently in the:

From the description this does not seem to be my problem.

Thomas

-- Thomas Portmann | e-mail: @.*** Tribunal fédéral Suisse | direct: +41 (0)21 318 9876 Av. du Tribunal fédéral 29 | tel: +41 (0)21 318 9111 1005 Lausanne | fax: +41 (0)21 323 3700