Can't disable opening pdf files on the mobile Nextcloud app
⚠️ Before posting ⚠️
- [X] This is a bug, not a question or an enhancement.
- [X] I've searched for similar issues and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
File is being opened by default when clicked on its name even if it is indicated to not open the file format by default in the ONLYOFFICE connector settings in Nextcloud, for example PDF. We checked from our end that our connector is passing the correct data as per documentation here.
In mimetypes we are passing the default data (the checked checkbox in the connector settings), for example:
"mimetypes":[
"application\/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application\/vnd.openxmlformats-officedocument.presentationml.presentation"
],
In optionalMimetypes we are passing other supported mimetypes like:
"optionalMimetypes":[
"application\/pdf",
...
Shown on PDF format example, it is being moved from one list to another when the checkbox is checked/unchecked in the connector settings. It seems that Nextcloud app is not handling these lists properly.
Issue https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/1015 described in our repo.
Expected behaviour
File is not opened
Actual behaviour
File is opened even if the checkbox for the chosen file format is unchecked in the ONLYOFFICE connector settings
Android version
Android 14
Device brand and model
Google Pixel 8
Stock or custom OS?
Stock
Nextcloud android app version
Nextcloud Android App 3.29.1
Nextcloud server version
Nextcloud 29.0.4
Using a reverse proxy?
I don't know
Android logs
No response
Server error logs
No response
Additional information
No response
Looping in @tobiasKaminsky @alperozturk96
Also facing the same issue. Any update after 3 months?
I'm still on Nextcloud 29, so I was able to downgrade the ONLYOFFICE app to 9.2.2.
This version doesn't support editing PDFs and therefore, if I understand correctly, is not affected by this bug.
But a fix would be very nice, so I can update the app again and use Nextcloud 30 in the future.
This problem still exists and leads to the problem that users can't open pdf-files on mobile devices when an open office server is installed at the same time. This is crucial, please fix it urgently.
Hi, I run also into this problem. Is there an outlook when a fix is available
@tobiasKaminsky , @alperozturk96 could you answer my question. On an IPhone this works, there the PDF viewer opens the file.
@Dieter-W Hello. I need to check the issue. I didn't come across this before. I will try to reproduce it.
Hello, A downgrade of the OnlyOffice App as suggested in https://github.com/ONLYOFFICE/onlyoffice-nextcloud/issues/1015 to 9.2.2 helps somehow. I can now open PDFs in Libera and ODS Files open with OnlyOffice on my android phone, if I force nextcloud to use the incompatible version.
But since the OO App v9.2.2 is not compatible with Nextcloud 30+, I can not configure it anymore. Trying to reach the config page for OO in Nextcloud administration leads to an internal server error. But if configured correctly before the downgrade, it seems to work somehow.
So seems like we have currently 3 options:
- deactivate OnlyOffice App in Nextcloud
- downgrade OnlyOffice App to 9.2.2 and hope it works without major issues -> office stuff via OO, PDFs can be opened without OO.
- live with the fact that PDFs on android get opened via OnlyOffice regardless of settings.
Since this Issue is there for quite some time now, I'm hoping @alperozturk96 can find the problem, and finally solve it...
versions I use as of writing: Nextcloud: 31.0.10 NC Android app: 3.34.1 OO NC App: 9.11
Greetings, Uno
P.S.
Another maybe interesting point:
I had an older OnlyOffice Instance running until yesterday.
Before updating the OnlyOffice Instance I got the The “documentType” parameter for the config object is invalid. Please correct it. when trying to open PDFs.
As long as the Nextcloud OO App was active, I could not open PDFs on android.
(however my work cloud server without onlyoffice could open them like desired, thats why I investigated further why I had this different behaviour)
Another perhaps helpful/important point @alperozturk96 If the PDF is not downloaded in the android app (no green hook), then it gets opened via OnlyOffice If it its present, so downloaded first, or after opening the first time, then it gets not opened via OnlyOffice but instead by the android PDF viewer
(before the mentioned updates this was actually my workaround: on direct click the documentType error. downloading PDF first and then clicking it -> normal opening)