{"record":{"id":"0c289173f5ae4ce6","repo":"nextcloud/server","slug":"node-with-name-uri-could-not-be-found","errorCode":null,"errorMessage":"Node with name '{uri}' could not be found","messagePattern":"Node with name '(.+?)' could not be found","errorType":"exception","errorClass":"Sabre\\DAV\\Exception\\NotFound","httpStatus":404,"severity":"error","filePath":"apps/dav/lib/CalDAV/CalDavBackend.php","lineNumber":597,"sourceCode":"\t\t$fields[] = 'a.principaluri';\n\t\t$fields[] = 'a.transparent';\n\t\t$fields[] = 's.access';\n\t\t$fields[] = 's.publicuri';\n\t\t$query = $this->db->getQueryBuilder();\n\t\t$result = $query->select($fields)\n\t\t\t->from('dav_shares', 's')\n\t\t\t->join('s', 'calendars', 'a', $query->expr()->eq('s.resourceid', 'a.id'))\n\t\t\t->where($query->expr()->in('s.access', $query->createNamedParameter(self::ACCESS_PUBLIC)))\n\t\t\t->andWhere($query->expr()->eq('s.type', $query->createNamedParameter('calendar')))\n\t\t\t->andWhere($query->expr()->eq('s.publicuri', $query->createNamedParameter($uri)))\n\t\t\t->executeQuery();\n\n\t\t$row = $result->fetchAssociative();\n\n\t\t$result->closeCursor();\n\n\t\tif ($row === false) {\n\t\t\tthrow new NotFound('Node with name \\'' . $uri . '\\' could not be found');\n\t\t}\n\n\t\t$row['principaluri'] = (string)$row['principaluri'];\n\t\t[, $name] = Uri\\split($row['principaluri']);\n\t\t$row['displayname'] = $row['displayname'] . ' ' . \"($name)\";\n\t\t$components = [];\n\t\tif ($row['components']) {\n\t\t\t$components = explode(',', $row['components']);\n\t\t}\n\t\t$calendar = [\n\t\t\t'id' => $row['id'],\n\t\t\t'uri' => $row['publicuri'],\n\t\t\t'principaluri' => $this->convertPrincipal($row['principaluri'], !$this->legacyEndpoint),\n\t\t\t'{' . Plugin::NS_CALENDARSERVER . '}getctag' => 'http://sabre.io/ns/sync/' . ($row['synctoken'] ?: '0'),\n\t\t\t'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ?: '0',\n\t\t\t'{' . Plugin::NS_CALDAV . '}supported-calendar-component-set' => new SupportedCalendarComponentSet($components),\n\t\t\t'{' . Plugin::NS_CALDAV . '}schedule-calendar-transp' => new ScheduleCalendarTransp($row['transparent']?'transparent':'opaque'),\n\t\t\t'{' . \\OCA\\DAV\\DAV\\Sharing\\Plugin::NS_OWNCLOUD . '}owner-principal' => $this->convertPrincipal($row['principaluri'], !$this->legacyEndpoint),","sourceCodeStart":579,"sourceCodeEnd":615,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/CalDAV/CalDavBackend.php#L579-L615","documentation":"Error \"Node with name '{uri}' could not be found\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/CalDAV/CalDavBackend.php:597 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"}