{"record":{"id":"a5247a753a47d610","repo":"nextcloud/server","slug":"ex-getmessage","errorCode":null,"errorMessage":"$ex->getMessage()","messagePattern":"\\$ex->getMessage\\(\\)","errorType":"exception","errorClass":"OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath","httpStatus":400,"severity":"error","filePath":"apps/dav/lib/Connector/Sabre/ObjectTree.php","lineNumber":80,"sourceCode":"\t * @throws \\Sabre\\DAV\\Exception\\ServiceUnavailable\n\t */\n\t#[\\Override]\n\tpublic function getNodeForPath($path) {\n\t\tif (!$this->fileView) {\n\t\t\tthrow new \\Sabre\\DAV\\Exception\\ServiceUnavailable('filesystem not setup');\n\t\t}\n\n\t\t$path = trim($path, '/');\n\n\t\tif (isset($this->cache[$path])) {\n\t\t\treturn $this->cache[$path];\n\t\t}\n\n\t\tif ($path) {\n\t\t\ttry {\n\t\t\t\t$this->fileView->verifyPath($path, basename($path));\n\t\t\t} catch (InvalidPathException $ex) {\n\t\t\t\tthrow new InvalidPath($ex->getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// Is it the root node?\n\t\tif (!strlen($path)) {\n\t\t\treturn $this->rootNode;\n\t\t}\n\n\t\tif (pathinfo($path, PATHINFO_EXTENSION) === 'part') {\n\t\t\t// read from storage\n\t\t\t$absPath = $this->fileView->getAbsolutePath($path);\n\t\t\t$mount = $this->fileView->getMount($path);\n\t\t\t$storage = $mount->getStorage();\n\t\t\t$internalPath = $mount->getInternalPath($absPath);\n\t\t\tif ($storage && $storage->file_exists($internalPath)) {\n\t\t\t\t/**\n\t\t\t\t * @var Storage $storage\n\t\t\t\t */","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/Connector/Sabre/ObjectTree.php#L62-L98","documentation":"Error \"$ex->getMessage()\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/Connector/Sabre/ObjectTree.php:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3","analyzedAt":"2026-08-17T01:36:13.386Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}