{"record":{"id":"fbe61c9e0a260956","repo":"nextcloud/server","slug":"creating-objects-in-cached-subscription-is-not-all","errorCode":null,"errorMessage":"Creating objects in cached subscription is not allowed","messagePattern":"Creating objects in cached subscription is not allowed","errorType":"exception","errorClass":"Sabre\\DAV\\Exception\\MethodNotAllowed","httpStatus":405,"severity":"error","filePath":"apps/dav/lib/CalDAV/CachedSubscription.php","lineNumber":171,"sourceCode":"\t\t$objs = $this->caldavBackend->getMultipleCalendarObjects($this->calendarInfo['id'], $paths, CalDavBackend::CALENDAR_TYPE_SUBSCRIPTION);\n\n\t\t$children = [];\n\t\tforeach ($objs as $obj) {\n\t\t\t$children[] = new CachedSubscriptionObject($this->caldavBackend, $this->calendarInfo, $obj);\n\t\t}\n\n\t\treturn $children;\n\t}\n\n\t/**\n\t * @param string $name\n\t * @param null|resource|string $data\n\t * @return null|string\n\t * @throws MethodNotAllowed\n\t */\n\t#[\\Override]\n\tpublic function createFile($name, $data = null) {\n\t\tthrow new MethodNotAllowed('Creating objects in cached subscription is not allowed');\n\t}\n\n\t/**\n\t * @param string $name\n\t * @return bool\n\t */\n\t#[\\Override]\n\tpublic function childExists($name):bool {\n\t\t$obj = $this->caldavBackend->getCalendarObject($this->calendarInfo['id'], $name, CalDavBackend::CALENDAR_TYPE_SUBSCRIPTION);\n\t\tif (!$obj) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}\n\n\t/**\n\t * @param array $filters","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/CalDAV/CachedSubscription.php#L153-L189","documentation":"Error \"Creating objects in cached subscription is not allowed\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/CalDAV/CachedSubscription.php:171 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"}