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

CODE and Nextcloud android stopped working at 24.04.10.2.1 #10852

Open
tuxArg opened this issue Jan 4, 2025 · 4 comments
Open

CODE and Nextcloud android stopped working at 24.04.10.2.1 #10852

tuxArg opened this issue Jan 4, 2025 · 4 comments
Labels
bug Something isn't working unconfirmed

Comments

@tuxArg
Copy link

tuxArg commented Jan 4, 2025

Describe the Bug

I have a functional nextcloud + code setup. Collabora is behind nginx reverse proxy which does the ssl part.

Nextcloud version: 30.04
richdocuments version: 8.5.3

I use the published docker images.
The last docker image that works ok is 24.04.10.1.1
Since docker image 24.04.10.2.1 (24.04.11.1.1 is affected too) this bug happens.
I can freely downgrade to 24.04.9.2.1 and use it ok. Or re-upgrade to 24.04.10.1.1. So it doesn't seem to be a cache issue. Also restarted nginx, cleared cache.

It works ok on desktop (chrome) or firefox (android).

Steps to Reproduce

Open any spreadsheet in nextcloud app (latest f-droid build - v3.30.6).

Expected Behavior

It should open

Actual Behavior

It fails to open. See screenshot.

Screenshots

See attached.
Screenshot_20250104-183529

Desktop

Smartphone

Tested many android devices. All affected.

nginx config:

server {
    listen 10.9.0.200:443 ssl http2;

    server_name office.mycloud.tld;
    ssl_certificate /etc/nginx/office.mycloud.tld_ecc/fullchain.cer;
    ssl_certificate_key /etc/nginx/office.mycloud.tld_ecc/office.mycloud.tld.key;
    
    client_max_body_size 1024M;
    location / {
        return 404;
    }
    location ^~ /browser/dist/admin/ {
        return 403;
    }
    location ^~ /cool/adminws {
        return 403;
    }
    location ~ ^/cool/(.*)/ws$ {
        proxy_pass http://10.9.0.200:9980;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_read_timeout 36000s;
    }
    location ~ ^/((c|l)ool/|browser/|hosting/(discovery|capabilities)$) {
        proxy_pass http://10.9.0.200:9980;
        proxy_set_header Host $host;
    }
}

Did anything changed from 24.04.10.1.1 to 24.04.10.2.1 that could be causing this issue?

@asandikci
Copy link

I have the same problem with 24.04.11.1 on Android. In my scenario "username has joined" text is popping up on upper left then result is an empty screen (even stylesheet pages are not loading).

@asandikci
Copy link

FYI: 24.04.09.2 (installed collabora office app from collabora fdroid repo) version is working (without any server-side change)

@tuxArg
Copy link
Author

tuxArg commented Jan 5, 2025

@asandikci right, first version affected is 24.04.10.2.1.
Sometimes, I get that "username has joined" too. But it doesn't load the file.

@Minion3665
Copy link
Member

FYI: 24.04.09.2 (installed collabora office app from collabora fdroid repo) version is working (without any server-side change)

The Collabora Office app from fdroid (or google play, or the website) uses its own local server rather than your CODE instance, so I'd be quite confused were it affected ... it's very interesting that your server is working correctly with both desktop and mobile browsers, though, that suggests it's something very specific to accessing via the nextcloud app...

...My best (untested, shot-in-the-dark) guess is that this might be a problem with a content security policy or perhaps some integrator setting that is set in the nextcloud app. I will have to take a debugger to it to be sure... I'd expect it to create an error that's visible in the console so would guess it will become apparent fairly quickly upon doing that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
Status: No status
Development

No branches or pull requests

3 participants