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

Trying to access array offset on value of type int at lib/private/Files/Node/Node.php#327 #907

Closed
chrissi55 opened this issue May 8, 2020 · 16 comments · Fixed by #942
Closed
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@chrissi55
Copy link

chrissi55 commented May 8, 2020

Steps to reproduce

  1. nc 18.0.4.2
  2. have a partition like /boot/efi or maybe a system partition of type swap
  3. check your logfiles and the system monitoring of nc

Expected behaviour

Tell us what should happen

No errors flooding the logs like

Error PHP Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#327

Actual behaviour

Tell us what happens instead
Errors like above come periodically every hour

Server configuration

Operating system: ubuntu 18.04.4

Web server: NGinx 1.17.10

**Database:**PostgreSQL 12.2

**PHP version:**7.4.5

Nextcloud version: (see Nextcloud admin page) NC 18.0.4.2

**Where did you install Nextcloud from:**by WebUI Updater from 18.0.3

Client configuration

**Browser:**Firefox

**Operating system:**Zorin OS 15.2 (based on ubuntu 18.04.x)

Logs

Nextcloud log (data/owncloud.log)

Insert your Nextcloud log here

[PHP] Error: Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#327

at 2020-05-08T07:00:03+02:00

[PHP] Error: Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#327

at 2020-05-08T01:45:02+02:00

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@kesselb
Copy link
Contributor

kesselb commented May 8, 2020

See nextcloud/server#19010 (comment) how to debug this error and add more information. I doubt the error is related to the serverinfo app (as the code in question opens a file from a user).

@chrissi55

This comment has been minimized.

@chrissi55
Copy link
Author

so got the first results ...

Error no app in context LogicException: $path is a integer: 2

/var/www/nextcloud/lib/private/Files/Node/Folder.php - line 59:
OC\Files\Node\Node->isValidPath()
/var/www/nextcloud/lib/private/Files/Node/Folder.php - line 137:
OC\Files\Node\Folder->getFullPath()
<<closure>>
OC\Files\Node\Folder->get()
/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 72:
call_user_func_array()
/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 144:
OCA\GroupFolders\Helper\LazyFolder->__call()
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 184:
OCA\GroupFolders\Helper\LazyFolder->get()
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 124:
OCA\GroupFolders\Mount\MountProvider->getFolder()
/var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php - line 160:
OCA\GroupFolders\Mount\MountProvider->getMount()
/var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 62:
OCA\GroupFolders\Versions\VersionsBackend->getAllVersionedFiles()
/var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 57:
OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder()
/var/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php - line 40:
OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
/var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 61:
OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run()
/var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 55:
OC\BackgroundJob\Job->execute()
/var/www/nextcloud/cron.php - line 125:
OC\BackgroundJob\TimedJob->execute()

So error seems to affect group folders and background job?
But in all the time i didn't upload files nor delete files from my only group folder i have.
Last timestamp of activity in group folder is 7 days in the past.

@kesselb kesselb transferred this issue from nextcloud/serverinfo May 8, 2020
@kesselb kesselb added 0. Needs triage Issues that need to be triaged bug labels May 8, 2020
@kesselb
Copy link
Contributor

kesselb commented May 8, 2020

Index: lib/Mount/MountProvider.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- lib/Mount/MountProvider.php	(revision dcf88133290973b8330063be8bb07b1ea67c63b4)
+++ lib/Mount/MountProvider.php	(date 1588934299798)
@@ -181,7 +181,7 @@
 
 	public function getFolder($id, $create = true) {
 		try {
-			return $this->getRootFolder()->get($id);
+			return $this->getRootFolder()->get((string)$id);
 		} catch (NotFoundException $e) {
 			if ($create) {
 				return $this->getRootFolder()->newFolder($id);

Should fix it.

@chrissi55
Copy link
Author

chrissi55 commented May 8, 2020

For the moment my log is calm concerning
/lib/private/Files/Node/Node.php#327
or (after the debug patch)

Error no app in context LogicException: $path is a integer: 2

Let me observe it a little longer before i close this issue.
At least one question, is it ok to let the debug patch code exist in ../lib//private/Files/Node/Node.php?
Thank you!

@chrissi55
Copy link
Author

Last log for the error is 18h past now, thanks again.
I will mark the issue as closed.

@kesselb kesselb reopened this May 9, 2020
@orex
Copy link

orex commented May 25, 2020

I do have the problem with nextcloud 18.0.4 and groupfolder 6.0.6. What do you think? Is proposed solution #907 (comment) OK?

	LogicException: $path is a integer: 3

    /var/www/nextcloud/lib/private/Files/Node/Folder.php - line 59:

    OC\Files\Node\Node->isValidPath()

    /var/www/nextcloud/lib/private/Files/Node/Folder.php - line 137:

    OC\Files\Node\Folder->getFullPath()

    <<closure>>

    OC\Files\Node\Folder->get()

    /var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 72:

    call_user_func_array()

    /var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 144:

    OCA\GroupFolders\Helper\LazyFolder->__call()

    /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 184:

    OCA\GroupFolders\Helper\LazyFolder->get()

    /var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 124:

    OCA\GroupFolders\Mount\MountProvider->getFolder()

    /var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php - line 160:

    OCA\GroupFolders\Mount\MountProvider->getMount()

    /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 62:

    OCA\GroupFolders\Versions\VersionsBackend->getAllVersionedFiles()

    /var/www/nextcloud/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php - line 57:

    OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder()

    /var/www/nextcloud/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php - line 40:

    OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()

    /var/www/nextcloud/lib/private/BackgroundJob/Job.php - line 61:

    OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run()

    /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php - line 55:

    OC\BackgroundJob\Job->execute()

    /var/www/nextcloud/cron.php - line 125:

    OC\BackgroundJob\TimedJob->execute()

@MoskiT87
Copy link

MoskiT87 commented May 27, 2020

Hi, i'm also have this error. #907(comment) not helped. Please, any fix?
Operating system: ubuntu 20.04
Web server: NGinx 1.17.10
**Database:**PostgreSQL 12.2
**PHP version:**7.4.6

LogicException: $path is a integer: 20
/var/www/nextcloud/lib/private/Files/Node/Folder.php - line 59:
OC\Files\Node\Node->isValidPath()
/var/www/nextcloud/lib/private/Files/Node/Folder.php - line 160:
OC\Files\Node\Folder->getFullPath()
<<closure>>
OC\Files\Node\Folder->newFolder()
/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 72:
call_user_func_array()
/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php - line 152:
OCA\GroupFolders\Helper\LazyFolder->__call()
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 187:
OCA\GroupFolders\Helper\LazyFolder->newFolder()
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 124:
OCA\GroupFolders\Mount\MountProvider->getFolder()
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 90:
OCA\GroupFolders\Mount\MountProvider->getMount()
<<closure>>
OCA\GroupFolders\Mount\MountProvider->OCA\GroupFolders\Mount\{closure}("*** sensiti ... *")
/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php - line 88:
array_map()
/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 104:
OCA\GroupFolders\Mount\MountProvider->getMountsForUser()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 448:
OC\Files\Config\MountProviderCollection->addMountForUser()
/var/www/nextcloud/lib/private/Files/Filesystem.php - line 377:
OC\Files\Filesystem::initMountPoints()
/var/www/nextcloud/lib/private/legacy/util.php - line 309:
OC\Files\Filesystem::init()
/var/www/nextcloud/apps/provisioning_api/lib/Controller/AUserData.php - line 192:
OC_Util::setupFS()
/var/www/nextcloud/apps/provisioning_api/lib/Controller/AUserData.php - line 140:
OCA\Provisioning_API\Controller\AUserData->fillStorageInfo()
/var/www/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php - line 391:
OCA\Provisioning_API\Controller\AUserData->getUserData()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:
OCA\Provisioning_API\Controller\UsersController->getUser()
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:
OC\AppFramework\Http\Dispatcher->executeController()
/var/www/nextcloud/lib/private/AppFramework/App.php - line 125:
OC\AppFramework\Http\Dispatcher->dispatch()
/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
OC\AppFramework\App::main()
<<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke()
/var/www/nextcloud/lib/private/Route/Router.php - line 299:
call_user_func()
/var/www/nextcloud/ocs/v1.php - line 82:
OC\Route\Router->match()
/var/www/nextcloud/ocs/v2.php - line 24:
require_once("/var/www/nextcloud/ocs/v1.php")

_________________________________________________________________________________________________________

{"reqId":"jyKpv8gQNzHcGyqTthpg"
"level":3
"time":"2020-05-29T13:55:17+03:00"
"remoteAddr":"10.10.1.10"
"user":"inf"
"app":"no app in context"
"method":"GET"
"url":"/ocs/v2.php/cloud/users/test2"
"message":{"Exception":"LogicException"
"Message":"$path is a integer: 20"
"Code":0
"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php"
"line":59
"function":"isValidPath"
"class":"OC\\Files\\Node\\Node"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php"
"line":160
"function":"getFullPath"
"class":"OC\\Files\\Node\\Folder"
"type":"->"},{"function":"newFolder"
"class":"OC\\Files\\Node\\Folder"
"type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php"
"line":72
"function":"call_user_func_array"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Helper/LazyFolder.php"
"line":152
"function":"__call"
"class":"OCA\\GroupFolders\\Helper\\LazyFolder"
"type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php"
"line":187
"function":"newFolder"
"class":"OCA\\GroupFolders\\Helper\\LazyFolder"
"type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php"
"line":124
"function":"getFolder"
"class":"OCA\\GroupFolders\\Mount\\MountProvider"
"type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php"
"line":90
"function":"getMount"
"class":"OCA\\GroupFolders\\Mount\\MountProvider"
"type":"->"},{"function":"OCA\\GroupFolders\\Mount\\{closure}"
"class":"OCA\\GroupFolders\\Mount\\MountProvider"
"type":"->"
"args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Mount/MountProvider.php"
"line":88
"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php"
"line":104
"function":"getMountsForUser"
"class":"OCA\\GroupFolders\\Mount\\MountProvider"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php"
"line":448
"function":"addMountForUser"
"class":"OC\\Files\\Config\\MountProviderCollection"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php"
"line":377
"function":"initMountPoints"
"class":"OC\\Files\\Filesystem"
"type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/util.php"
"line":309
"function":"init"
"class":"OC\\Files\\Filesystem"
"type":"::"},{"file":"/var/www/nextcloud/apps/provisioning_api/lib/Controller/AUserData.php"
"line":192
"function":"setupFS"
"class":"OC_Util"
"type":"::"},{"file":"/var/www/nextcloud/apps/provisioning_api/lib/Controller/AUserData.php"
"line":140
"function":"fillStorageInfo"
"class":"OCA\\Provisioning_API\\Controller\\AUserData"
"type":"->"},{"file":"/var/www/nextcloud/apps/provisioning_api/lib/Controller/UsersController.php"
"line":391
"function":"getUserData"
"class":"OCA\\Provisioning_API\\Controller\\AUserData"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
"line":170
"function":"getUser"
"class":"OCA\\Provisioning_API\\Controller\\UsersController"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
"line":99
"function":"executeController"
"class":"OC\\AppFramework\\Http\\Dispatcher"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php"
"line":125
"function":"dispatch"
"class":"OC\\AppFramework\\Http\\Dispatcher"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php"
"line":47
"function":"main"
"class":"OC\\AppFramework\\App"
"type":"::"},{"function":"__invoke"
"class":"OC\\AppFramework\\Routing\\RouteActionHandler"
"type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php"
"line":299
"function":"call_user_func"},{"file":"/var/www/nextcloud/ocs/v1.php"
"line":82
"function":"match"
"class":"OC\\Route\\Router"
"type":"->"},{"file":"/var/www/nextcloud/ocs/v2.php"
"line":24
"args":["/var/www/nextcloud/ocs/v1.php"]
"function":"require_once"}]
"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php"
"Line":330
"CustomMessage":"--"}
"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
"version":"18.0.4.2"}

@kernie
Copy link

kernie commented Aug 21, 2020

Hi,
we still have the issue and app groupfolders is on version 7.0.0.

Should I open a new issue?

{"reqId":"oUY6mvRNJ15h0ZRLbZVL","level":3,"time":"2020-08-21T11:01:48+02:00","remoteAddr":"192.168.10.5","user":"****","app":"PHP","method":"PUT","url":"/remote.php/webdav/03%20Projekte/***docx","message":"Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#328","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0","version":"19.0.1.1","id":"5f3f9e0bafadd"}

@juliusknorr
Copy link
Member

Yes, could you try to get some more extensive log entry with the patch from here #907 (comment) ?

@kernie
Copy link

kernie commented Aug 26, 2020

@juliushaertl
So here is the output of a (hope the right one) patch:

{"reqId":"qlJF45uw4WYdoYxMszFm","level":3,"time":"2020-08-26T10:44:21+02:00","remoteAddr":"192.168.10.5","user":"****","app":"no app in context","method":"GET","url":"/apps/files_versions/preview?file=****_gesamt.docx&version=1598021428","message":{"Exception":"LogicException","Message":"$path is a integer: 33845","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":60,"function":"isValidPath","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":138,"function":"getFullPath","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/groupfolders/lib/Versions/VersionsBackend.php","line":144,"function":"get","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Versions/VersionManager.php","line":108,"function":"getVersionFile","class":"OCA\\GroupFolders\\Versions\\VersionsBackend","type":"->"},{"file":"/var/www/nextcloud/apps/files_versions/lib/Controller/PreviewController.php","line":99,"function":"getVersionFile","class":"OCA\\Files_Versions\\Versions\\VersionManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"getPreview","class":"OCA\\Files_Versions\\Controller\\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func"},{"file":"/var/www/nextcloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":330,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0","version":"19.0.1.1","id":"5f4620e6be54d"}
I can deliver more if needed.

@ghost
Copy link

ghost commented Dec 20, 2020

@kesselb
As this original issue for 18.0.4.2 is closed, but the problem still remains on 20.0.4 can you reopen? Or should I open a new issue here?

@kesselb
Copy link
Contributor

kesselb commented Dec 20, 2020

See nextcloud/server#19010 (comment) how to debug this error and add more information. I doubt the error is related to the serverinfo app (as the code in question opens a file from a user).

@Lars1963

@solracsf
Copy link
Member

solracsf commented Apr 16, 2021

@kesselb here are the debug logs:

[no app in context] Error: LogicException: $path is a integer: 1 at <<closure>>

 0. /lib/private/Files/Node/Folder.php line 69
    OC\Files\Node\Node->isValidPath(1)
 1. /lib/private/Files/Node/Folder.php line 170
    OC\Files\Node\Folder->getFullPath(1)
 2. /apps/groupfolders/lib/Trash/TrashBackend.php line 250
    OC\Files\Node\Folder->newFolder(1)
 3. /apps/groupfolders/lib/Trash/TrashBackend.php line 268
    OCA\GroupFolders\Trash\TrashBackend->getTrashFolder(1)
 4. /apps/groupfolders/lib/Trash/TrashBackend.php line 71
    OCA\GroupFolders\Trash\TrashBackend->getTrashForFolders(OC\User\User {}, [{0: "And 1 more ... }])
 5. /apps/files_trashbin/lib/Trash/TrashManager.php line 48
    OCA\GroupFolders\Trash\TrashBackend->listTrashRoot(OC\User\User {})
 6. <<closure>>
    OCA\Files_Trashbin\Trash\TrashManager->OCA\Files_Trashbin\Trash\{closure}("*** sensitive parameters replaced ***")
 7. /apps/files_trashbin/lib/Trash/TrashManager.php line 49
    array_reduce({OCP\Files\Stora ... "}, Closure {}, [])
 8. /apps/files_trashbin/lib/Sabre/TrashRoot.php line 75
    OCA\Files_Trashbin\Trash\TrashManager->listTrashRoot(OC\User\User {})
 9. /3rdparty/sabre/dav/lib/DAV/Tree.php line 204
    OCA\Files_Trashbin\Sabre\TrashRoot->getChildren()
10. /3rdparty/sabre/dav/lib/DAV/Server.php line 905
    Sabre\DAV\Tree->getChildren("trashbin/test/trash")
11. /3rdparty/sabre/dav/lib/DAV/Server.php line 987
    Sabre\DAV\Server->generatePathNodes(Sabre\DAV\PropFind {}, [Sabre\DAV\PropF ... }])
12. /3rdparty/sabre/dav/lib/DAV/Server.php line 1678
    Sabre\DAV\Server->getPropertiesIteratorForPath("trashbin/test/trash", ["{http://nextcl ... "], 1)
13. /3rdparty/sabre/dav/lib/DAV/Server.php line 1661
    Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
14. /3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 363
    Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
15. /3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
16. /3rdparty/sabre/dav/lib/DAV/Server.php line 474
    Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
17. /3rdparty/sabre/dav/lib/DAV/Server.php line 251
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
18. /3rdparty/sabre/dav/lib/DAV/Server.php line 319
    Sabre\DAV\Server->start()
19. /apps/dav/lib/Server.php line 320
    Sabre\DAV\Server->exec()
20. /apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
21. /remote.php line 167
    require_once("/srv/users/alix ... p")

PROPFIND /remote.php/dav/trashbin/test/trash
[no app in context] Error: LogicException: $path is a integer: 2 at <<closure>>

 0. /lib/private/Files/Node/Folder.php line 69
    OC\Files\Node\Node->isValidPath(2)
 1. /lib/private/Files/Node/Folder.php line 170
    OC\Files\Node\Folder->getFullPath(2)
 2. <<closure>>
    OC\Files\Node\Folder->newFolder(2)
 3. /apps/groupfolders/lib/Helper/LazyFolder.php line 72
    call_user_func_array([OC\Files\Node\Folder {},"newFolder"], [2])
 4. /apps/groupfolders/lib/Helper/LazyFolder.php line 152
    OCA\GroupFolders\Helper\LazyFolder->__call("newFolder", [2])
 5. /apps/groupfolders/lib/Mount/MountProvider.php line 185
    OCA\GroupFolders\Helper\LazyFolder->newFolder(2)
 6. /apps/groupfolders/lib/Mount/MountProvider.php line 122
    OCA\GroupFolders\Mount\MountProvider->getFolder(2)
 7. /apps/groupfolders/lib/Mount/MountProvider.php line 88
    OCA\GroupFolders\Mount\MountProvider->getMount(2, "/test/files/C ... i", 31, -3, null, OC\Files\Storage\StorageFactory {}, false, OC\User\User {})
 8. <<closure>>
    OCA\GroupFolders\Mount\MountProvider->OCA\GroupFolders\Mount\{closure}("*** sensitive parameters replaced ***")
 9. /apps/groupfolders/lib/Mount/MountProvider.php line 86
    array_map(Closure {}, [{0: "And 1 more ... "])
10. /lib/private/Files/Config/MountProviderCollection.php line 105
    OCA\GroupFolders\Mount\MountProvider->getMountsForUser(OC\User\User {}, OC\Files\Storage\StorageFactory {})
11. /lib/private/Files/Filesystem.php line 451
    OC\Files\Config\MountProviderCollection->addMountForUser(OC\User\User {}, OC\Files\Mount\Manager {})
12. /lib/private/Files/Filesystem.php line 376
    OC\Files\Filesystem::initMountPoints("test")
13. /lib/private/legacy/OC_Util.php line 308
    OC\Files\Filesystem::init("test", "/test/files")
14. /lib/base.php line 1009
    OC_Util::setupFS()
15. /index.php line 37
    OC::handleRequest()

GET /settings/admin/logging

@solracsf solracsf changed the title Trying to access array offset on value of type int at /var/www/nextcloud/lib/private/Files/Node/Node.php#327 Trying to access array offset on value of type int at lib/private/Files/Node/Node.php#327 Apr 16, 2021
@juliusknorr
Copy link
Member

@acsfer I pushed a fix to #1472 Testing and reviews are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants