{"record":{"id":"a0ca7e9fd70c12f9","repo":"nextcloud/server","slug":"failed-to-get-fileinfo-for-this-path","errorCode":null,"errorMessage":"'Failed to get fileinfo for ' . $this->path","messagePattern":"'Failed to get fileinfo for ' \\. \\$this->path","errorType":"exception","errorClass":"Sabre\\DAV\\Exception","httpStatus":500,"severity":"error","filePath":"apps/dav/lib/Connector/Sabre/Node.php","lineNumber":90,"sourceCode":"\t\t\t// The Node API assumes that the view passed doesn't have a fake root\n\t\t\t$rootView = Server::get(View::class);\n\t\t\t$root = Server::get(IRootFolder::class);\n\t\t\tif ($info->getType() === FileInfo::TYPE_FOLDER) {\n\t\t\t\t$this->node = new Folder($root, $rootView, $this->fileView->getAbsolutePath($this->path), $info);\n\t\t\t} else {\n\t\t\t\t$this->node = new File($root, $rootView, $this->fileView->getAbsolutePath($this->path), $info);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @throws Exception\n\t * @throws PreConditionNotMetException\n\t */\n\tprotected function refreshInfo(): void {\n\t\t$info = $this->fileView->getFileInfo($this->path);\n\t\tif ($info === false) {\n\t\t\tthrow new Exception('Failed to get fileinfo for ' . $this->path);\n\t\t}\n\n\t\t$this->info = $info;\n\t\t$root = Server::get(IRootFolder::class);\n\t\t$rootView = Server::get(View::class);\n\t\tif ($this->info->getType() === FileInfo::TYPE_FOLDER) {\n\t\t\t$this->node = new Folder($root, $rootView, $this->path, $this->info);\n\t\t} else {\n\t\t\t$this->node = new File($root, $rootView, $this->path, $this->info);\n\t\t}\n\t}\n\n\t/**\n\t *  Returns the name of the node\n\t */\n\t#[\\Override]\n\tpublic function getName(): string {\n\t\treturn $this->info->getName();","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/Connector/Sabre/Node.php#L72-L108","documentation":"Error \"'Failed to get fileinfo for ' . $this->path\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/Connector/Sabre/Node.php:90 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"}