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

Error: LogicException: $path is a integer #1448

Closed
solracsf opened this issue Apr 16, 2021 · 0 comments · Fixed by #1472
Closed

Error: LogicException: $path is a integer #1448

solracsf opened this issue Apr 16, 2021 · 0 comments · Fixed by #1472
Labels
0. Needs triage Issues that need to be triaged bug

Comments

@solracsf
Copy link
Member

Debugged with nextcloud/server#19010 (comment)

[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 added bug 0. Needs triage Issues that need to be triaged labels Apr 16, 2021
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.

1 participant