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

class 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' #150

Closed
BMerz opened this issue Aug 10, 2019 · 7 comments
Closed

class 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' #150

BMerz opened this issue Aug 10, 2019 · 7 comments

Comments

@BMerz
Copy link

BMerz commented Aug 10, 2019

When accessing Nextcloud as guest user I get multiple log entries in nextcloud log like

{"reqId":"gilEJiaDD5UviBTtE62n","level":3,"time":"2019-08-10T16:07:16+00:00","remoteAddr":"xx.xx.xx.xx","user":"xx@xx","app":"PHP","method":"PROPFIND","url":"/nextcloud/remote.php/dav/files/xx@xx/xx/xx.jpg","message":"call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\Files\Storage\Home' does not have a method 'checkPath' at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php#506","userAgent":"Mozilla/5.0 (Linux; Android 9; BLA-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.89 Mobile Safari/537.36","version":"16.0.3.0","id":"5d4eebb4badb0"}

Nextcloud version 16.0.3
Guests version 1.1.1

@msumm
Copy link

msumm commented Aug 21, 2019

Same for me:

[PHP] Error: call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\Files\Storage\Home' does not have a method 'checkPath' at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php#506
GET /core/preview?fileId=13180&c=dbf8-1-5908acdca2b36&x=250&y=250&forceIcon=0
from xx.xx.xx.xx by xx@xx at 2019-08-21T09:26:30+00:00

{"reqId":"VtZSqr94E20E0wRvHvvF","level":3,"time":"2019-08-21T09:26:30+00:00","remoteAddr":"xx.xx.xx.xx","user":"xx@xx","app":"PHP","method":"GET","url":"/core/preview?fileId=13180&c=dbf8-1-5908acdca2b36&x=250&y=250&forceIcon=0","message":"call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\Files\Storage\Home' does not have a method 'checkPath' at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php#506","userAgent":"Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0","version":"16.0.3.0","id":"5d5d1dde6b0a6"}

@alx-tuilmenau
Copy link

Got the same here, from somebody using the nextcloud client:
{"reqId":"GCs2Lnf2wFkeaGOxBMez","level":3,"time":"2019-08-21T11:57:26+00:00","remoteAddr":"XXX","user":"guest_XXX","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/guest_XXX\/","message":"call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' at \/data\/nextcloud_16\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php#506","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.5.1final (build 20181204) (Nextcloud)","version":"16.0.4.1"}'

@SSpecken
Copy link

Yes, we got the same issues with Guests:

  • Nextcloud 16.0.4.1
  • Guest App 1.1.1
  • Created guest account in sharing menu
  • Guest is using Chrome
  • Guest's App-Whitelist: files_trashbin, files_versions, files_sharing, files_texteditor, activity, firstrunwizard, gallery, onlyoffice, text, groupfolders

{"reqId":"Hj2FPp9Vb2dDcBWgQavh","level":3,"time":"2019-09-11T07:57:34+00:00","remoteAddr":"XXX","user":"XXX"app":"PHP","method":"GET","url":"\/apps\/files\/?dir=\/XXX=Test.xlsx","message":"call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php#506","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko\/20100101 Firefox\/69.0","version":"16.0.4.1"}

And guests can't create onlyoffice files in their home path (1G of space allowed):

{"reqId":"WncrOugXeczKooYcXXHm","level":3,"time":"2019-09-11T08:08:28+00:00","remoteAddr":"XXXX","user":"stefan@speckenheuer.net","app":"index","method":"POST","url":"\/apps\/onlyoffice\/ajax\/new","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create path","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/apps\/onlyoffice\/controller\/editorcontroller.php","line":241,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->","args":["CreateDoc.docx"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"create","class":"OCA\\Onlyoffice\\Controller\\EditorController","type":"->","args":["CreateDoc.docx","\/",null]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\EditorController"},"create"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":126,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Onlyoffice\\Controller\\EditorController"},"create"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Onlyoffice\\Controller\\EditorController","create",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"onlyoffice.editor.create"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"onlyoffice.editor.create"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"onlyoffice.editor.create"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":975,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/onlyoffice\/ajax\/new"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/lib\/private\/Files\/Node\/Folder.php","Line":185,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko\/20100101 Firefox\/69.0","version":"16.0.4.1"}

@alx-tuilmenau
Copy link

@SSpecken

And guests can't create onlyoffice files in their home path (1G of space allowed):

As far as I know, it is intended that guests can only write in shared folders. See here.

@SSpecken
Copy link

SSpecken commented Sep 11, 2019

@alx-tuilmenau

As far as I know, it is intended that guests can only write in shared folders. See here.

Accepted!

But another issue we have is that guests can't open existing documents with onlyoffice if the document wasn't opened by a "real user":

{"reqId":"lCmyPMm72Or0Yb7w2BDb","level":3,"time":"2019-09-11T15:15:27+00:00","remoteAddr":"XXXX","user":"XXXX","app":"PHP","method":"GET","url":"\/apps\/onlyoffice\XXXX%2FTest.xlsx","message":"call_user_func_array() expects parameter 1 to be a valid callback, class 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php#506","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko\/20100101 Firefox\/69.0","version":"16.0.4.1"}

After a "real user" opens the doc with in onlyoffice the guest is able to open it as well.

@SSpecken
Copy link

SSpecken commented Sep 12, 2019

Solved my issues with guests and onlyoffice. Because guests seems not working well with groups folders, group permissions and onlyoffice, I changed the sharing for the guests:

  • removed group folder
  • removed extended permissions
  • use "normal" shares and permissions for guests now

The error message 'OC\\Files\\Storage\\Home' does not have a method 'checkPath' still exists.

@joshtrichards
Copy link
Member

Fixed in #184

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

No branches or pull requests

5 participants