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

Onlyoffice on Android won’t load after onlyoffice 4.1.2 update #228

Closed
jakobroehrl opened this issue Jan 26, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@jakobroehrl
Copy link

after installing the update to 4.1.2 onlyoffice is still working in the browser but don’t load in the Android App:
grafik
If I downgrade to 4.1.1 it's working again.

https://help.nextcloud.com/t/onlyoffice-on-android-wont-load-after-onlyoffice-and-documentserver-update/69231

@buzz-tee
Copy link

buzz-tee commented Jan 26, 2020

Hi, same behavior here.
Not sure if it's relevant but my OnlyOffice reverse proxy access logs contain the following:

217.235.x.x - myuser [26/Jan/2020:11:01:37 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 601 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.10.0" "-"
217.235.x.x - myuser [26/Jan/2020:11:01:37 +0000] "POST /ocs/v2.php/apps/files/api/v1/directEditing/open?format=json HTTP/1.1" 200 202 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.10.0" "-"
2003:c3::y:y - - [26/Jan/2020:11:01:38 +0000] "GET /apps/files/directEditing/XMpptCNqQEQ3AHSWpAXFGWDmLMMmkmsSnSEMamdNTFSGoMw94KscsbBGcnKkngze HTTP/2.0" 404 153 "-" "Mozilla/5.0 (Android 10) Mobile Nextcloud-android/3.10.0" "-"

First two entries show authenticated IPv4 session ('myuser') and generate 200 OK responses, the last entry switches to non-authenticated IPv6 and the response code is 404 Not Found. No more log entries from my devices after that line so it seemed important. (Ok, I'm omitting the /favicon.ico request which has the 404 URL as referrer)

The log looks the same in version 4.1.1 but there it works.

I also tried removing IPv6, and even HTTP/2 from my NC and OnlyOffice, no change unfortunately:

87.148.x.x - - [26/Jan/2020:12:51:45 +0000] "GET /apps/files/directEditing/CY6nq4a8otB2GDF8iiDbJ2mTg74wpMzT58gkiKoNYzjniRL6PMNXGo3RzR2Ri52s HTTP/1.1" 404 153 "-" "Mozilla/5.0 (Android 10) Mobile Nextcloud-android/3.10.0" "-"

Some more digging revealed that isUserAllowedToUse() fails: $userSession->getSession()->get('user_id') is null, so it seems the session is lost in that last call.
This call is new in 4.1.2 (see https://github.com/ONLYOFFICE/onlyoffice-nextcloud/pull/226/files#diff-98f41e4acfeac80f65d6397314947e94R137) - commenting it out fixes the issue for me.

[edited to join multiple posts]

@LinneyS LinneyS added the bug Something isn't working label Jan 27, 2020
@buzz-tee
Copy link

Quick check shows documents are loading fine in web browser and on Android devices. No issues observed so far.
Thanks for the fast fix @LinneyS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants