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 does not work when editing files from group folder through a share link #200

Closed
schierla opened this issue Jul 16, 2018 · 0 comments
Labels

Comments

@schierla
Copy link

I'm using Nextcloud 13.0.4 with OnlyOffice 1.3.0, Group Folders 1.2.2 and File Sharing 1.5.0.
In general, ONLYOFFICE works for editing files, from individual folders as well as from group folders.

However, when I use the share by email feature with a file on a group folder (and enable "can write"), ONLYOFFICE does not open, but ends with a HTTP error 500 when accessing index.php/apps/onlyoffice/ajax/config/1273027.

In the log, the corresponding exception is:
{
"Exception":"Error",
"Message":"Call to a member function getUID() on null",
"Code":0,
"Trace":"
#0 [internal function]: OCA\Onlyoffice\Controller\EditorController->config(1273027, '[TOKEN]')
#1 /snap/nextcloud/7658/htdocs/lib/private/AppFramework/Http/Dispatcher.php(161): call_user_func_array(Array, Array)
#2 /snap/nextcloud/7658/htdocs/lib/private/AppFramework/Http/Dispatcher.php(91): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Onlyoffice\Controller\EditorController), 'config')
#3 /snap/nextcloud/7658/htdocs/lib/private/AppFramework/App.php(115): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Onlyoffice\Controller\EditorController), 'config')
#4 /snap/nextcloud/7658/htdocs/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main('OCA\Onlyoffice\...', 'config', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
#5 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
#6 /snap/nextcloud/7658/htdocs/lib/private/Route/Router.php(297): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
#7 /snap/nextcloud/7658/htdocs/lib/base.php(999): OC\Route\Router->match('/apps/onlyoffic...')
#8 /snap/nextcloud/7658/htdocs/index.php(42): OC::handleRequest()
#9 {main}",
"File":"/var/snap/nextcloud/7658/nextcloud/extra-apps/onlyoffice/controller/editorcontroller.php",
"Line":430
}

It looks like ONLYOFFICE fails to determine the file owner of the group folder file. When I share the file as read-only, or when I share it from a individual folder, ONLYOFFICE works fine.

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

2 participants