You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When downloading/exporting documents from Collabora Online (richdocuments) in the Nextcloud Android app, the downloadAs JavaScript interface fails to parse the JSON message due to a key name mismatch between the JavaScript side and the Android side.
Android side (RichDocumentsEditorWebView.kt:133-149) expects:
{
"URL": "https://...",
"Type": "pdf"
}
The Android code uses downloadJson.getString("URL") and downloadJson.getString("TYPE") which fail because the actual JSON keys are lowercase (url, format).
@alperozturk96 Yes please, that would be great!
Just for notice, the fix was AI-generated from static code analysis. I don't have an Android device to verify the actual behavior.
Activity
juliusknorr commentedon May 21, 2026
I'm curious if that changed somehow or where the difference originated from.
TypeandURLare the underlying Collabora post messages (https://sdk.collaboraonline.com/docs/postmessage_api.html). Richdocuments has not changed it, so wondering if Collabora did rename those at some point?@pedropintosilva Do you have any insight there?
juliusknorr commentedon May 21, 2026
Also Collabora has
TypeandURLsince at least 5 years https://github.com/CollaboraOnline/online/blame/3d18a28e64161858e5afad729dd8c5a8881d956e/browser/src/layer/tile/CanvasTileLayer.js#L1552chrip commentedon May 21, 2026
Same bug in the iOS app nextcloud/ios#4114
alperozturk96 commentedon May 22, 2026
I can create a PR with fallback to current one with findings here if nothing else needed to investigated?
chrip commentedon May 22, 2026
@alperozturk96 Yes please, that would be great!
Just for notice, the fix was AI-generated from static code analysis. I don't have an Android device to verify the actual behavior.
alperozturk96 commentedon May 22, 2026
I created PR but I can't find export button, what am I missing?
Screen.Recording.2026-05-22.at.16.00.55.mp4
chrip commentedon May 26, 2026
@alperozturk96 Thank you for this quick fix! Have you tested it in Collabora? In the screen recording is Euro-office shown.