{"record":{"id":"88b48f8c13bcd1be","repo":"nextcloud/server","slug":"invalidpathexception-getmessage","errorCode":null,"errorMessage":"$invalidPathException->getMessage()","messagePattern":"\\$invalidPathException->getMessage\\(\\)","errorType":"exception","errorClass":"OCA\\DAV\\Connector\\Sabre\\Exception\\InvalidPath","httpStatus":400,"severity":"error","filePath":"apps/dav/lib/Connector/Sabre/Node.php","lineNumber":358,"sourceCode":"\t\treturn str_replace(['S', 'M'], '', $this->getDavPermissions());\n\t}\n\n\tpublic function getOwner(): ?IUser {\n\t\treturn $this->info->getOwner();\n\t}\n\n\t/**\n\t * @throws InvalidPath\n\t */\n\tprotected function verifyPath(?string $path = null): void {\n\t\ttry {\n\t\t\t$path ??= $this->info->getPath();\n\t\t\t$this->fileView->verifyPath(\n\t\t\t\tdirname($path),\n\t\t\t\tbasename($path),\n\t\t\t);\n\t\t} catch (InvalidPathException $invalidPathException) {\n\t\t\tthrow new InvalidPath($invalidPathException->getMessage(), false, $invalidPathException);\n\t\t}\n\t}\n\n\t/**\n\t * @param ILockingProvider::LOCK_* $type\n\t * @throws LockedException\n\t */\n\tpublic function acquireLock($type): void {\n\t\t$this->fileView->lockFile($this->path, $type);\n\t}\n\n\t/**\n\t * @param ILockingProvider::LOCK_* $type\n\t * @throws LockedException\n\t */\n\tpublic function releaseLock($type): void {\n\t\t$this->fileView->unlockFile($this->path, $type);\n\t}","sourceCodeStart":340,"sourceCodeEnd":376,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/Connector/Sabre/Node.php#L340-L376","documentation":"Error \"$invalidPathException->getMessage()\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/Connector/Sabre/Node.php:358 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"}