Android: Editing files with Collabora doesn't work on external storages

Created on 24 Dec 2018  路  4Comments  路  Source: nextcloud/android

Actual behaviour

If i want to edit a file from an external storage with Collabora in the mobile app, the loading circle just keeps spinning and the file is not loaded in Collabora.

Expected behaviour

It should open in Collabora as the files from internal storage do.

Steps to reproduce

  1. Create an OpenOffice compatible file on an external storage
  2. Try to open it with Collabora from the mobile app
  3. 3.

Environment data

Android version:
8.1.0
Device model:
Nokia 5
Stock or customized system:
Stock
Nextcloud app version:
3.4.1
Nextcloud server version:
14.04

Logs

Web server error log

10.8.1.11 - - [24/Dec/2018:14:01:25 +0200] "GET /nextcloud/apps/richdocuments/direct/W7BCBPA4hOs8OZmAMhRySBZOqzsxKGTMKX7apkSQ91hD5DcQTTW5pmoAiY8f2r2b HTTP/2.0" 500 6817 "-" "Mozilla/5.0 (Android) ownCloud-android/3.4.1"

Nextcloud log (data/nextcloud.log)

{"reqId":"dF2vmFXcyc50H4K00NsT","level":3,"time":"2018-12-24T13:02:51+00:00","remoteAddr":"10.8.1.11","user":"--","app":"index","method":"GET","url":"\/nextcloud\/apps\/richdocuments\/direct\/zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi","message":{"Exception":"Error","Message":"Call to a member function getUID() on null","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/richdocuments\/lib\/Controller\/DirectViewController.php","line":117,"function":"getToken","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"show","class":"OCA\\Richdocuments\\Controller\\DirectViewController","type":"->","args":["zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DirectViewController"},"show"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Richdocuments\\Controller\\DirectViewController"},"show"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DirectViewController","show",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"token":"zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi","_route":"richdocuments.directView.show"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"token":"zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi","_route":"richdocuments.directView.show"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"token":"zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi","_route":"richdocuments.directView.show"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/richdocuments\/direct\/zNuR6gBXx8Tmu152nahvUvoSn5ggBCXn3ThNoCb1QnSNsWvaInt0tQ6i2n6i2fXi"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/apps\/richdocuments\/lib\/TokenManager.php","Line":134,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.4.1","version":"14.0.4.2"}
bug

Most helpful comment

I just did an upgrade to the richdocuments app on the server to version 3.1.1 and mobile editing works on external storages.

All 4 comments

GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/3109 (Ability to mount the files as external storage), https://github.com/nextcloud/android/issues/3389 (File detail exact time edited), https://github.com/nextcloud/android/issues/2198 (Duplicated images on external storage), https://github.com/nextcloud/android/issues/2366 (Android Client problem with external storage), and https://github.com/nextcloud/android/issues/2199 (Visualise external storages).

Update:
The behavior is the same with NC 15 server.
Also:

  • editing the same files (in the same location) works from the web interface
  • if i copy the files in the "internal" NC storage, editing works in the mobile app too

@rullzer as you added the crucial part to RichDocuments, do you have an idea?

I just did an upgrade to the richdocuments app on the server to version 3.1.1 and mobile editing works on external storages.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toobie83 picture toobie83  路  3Comments

ezaquarii picture ezaquarii  路  3Comments

ThaDaVos picture ThaDaVos  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  3Comments

rainer042 picture rainer042  路  3Comments