Giter VIP home page Giter VIP logo

Comments (6)

msumm avatar msumm commented on June 16, 2024

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"}

from guests.

alx-tuilmenau avatar alx-tuilmenau commented on June 16, 2024

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"}'

from guests.

SSpecken avatar SSpecken commented on June 16, 2024

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":"[email protected]","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"}

from guests.

alx-tuilmenau avatar alx-tuilmenau commented on June 16, 2024

@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.

from guests.

SSpecken avatar SSpecken commented on June 16, 2024

@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.

from guests.

SSpecken avatar SSpecken commented on June 16, 2024

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.

from guests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.