{"record":{"id":"3af891e4aab7329c","repo":"nextcloud/server","slug":"the-resource-you-tried-to-create-has-a-reserved-na","errorCode":null,"errorMessage":"The resource you tried to create has a reserved name","messagePattern":"The resource you tried to create has a reserved name","errorType":"http","errorClass":"MethodNotAllowed","httpStatus":405,"severity":"error","filePath":"apps/dav/lib/CalDAV/CalendarHome.php","lineNumber":80,"sourceCode":"\t/**\n\t * @return BackendInterface\n\t */\n\tpublic function getCalDAVBackend() {\n\t\treturn $this->caldavBackend;\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\t#[\\Override]\n\tpublic function createExtendedCollection($name, MkCol $mkCol): void {\n\t\t$reservedNames = [\n\t\t\tBirthdayService::BIRTHDAY_CALENDAR_URI,\n\t\t\tTrashbinHome::NAME,\n\t\t];\n\n\t\tif (\\in_array($name, $reservedNames, true) || ExternalCalendar::doesViolateReservedName($name)) {\n\t\t\tthrow new MethodNotAllowed('The resource you tried to create has a reserved name');\n\t\t}\n\n\t\tparent::createExtendedCollection($name, $mkCol);\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\t#[\\Override]\n\tpublic function getChildren() {\n\t\tif ($this->cachedChildren) {\n\t\t\treturn $this->cachedChildren;\n\t\t}\n\t\t$calendars = $this->caldavBackend->getCalendarsForUser($this->principalInfo['uri']);\n\t\t$objects = [];\n\t\tforeach ($calendars as $calendar) {\n\t\t\t$objects[] = new Calendar($this->caldavBackend, $calendar, $this->l10n, $this->config, $this->logger);\n\t\t}","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/CalDAV/CalendarHome.php#L62-L98","documentation":"Error \"The resource you tried to create has a reserved name\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/CalDAV/CalendarHome.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"}