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

Editing files with Collabora doesn't work on external storages #3407

Closed
gradinaruvasile opened this issue Dec 24, 2018 · 4 comments
Closed
Labels

Comments

@gradinaruvasile
Copy link

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

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"}
@nextcloud-android-bot
Copy link
Collaborator

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

@gradinaruvasile
Copy link
Author

gradinaruvasile commented Jan 8, 2019

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

@gradinaruvasile gradinaruvasile changed the title Editing files with Collabora doesn/t work on external storages Editing files with Collabora doesn't work on external storages Jan 8, 2019
@tobiasKaminsky
Copy link
Member

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

@gradinaruvasile
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants