{"record":{"id":"96c8f352d60e3e4a","repo":"nextcloud/server","slug":"property-name-has-an-invalid-value-of-array-con","errorCode":null,"errorMessage":"Property \"$name\" has an invalid value of array containing {gettype($item)}","messagePattern":"Property \"\\$name\" has an invalid value of array containing (.+?)","errorType":"exception","errorClass":"Sabre\\DAV\\Exception","httpStatus":500,"severity":"error","filePath":"apps/dav/lib/DAV/CustomPropertiesBackend.php","lineNumber":605,"sourceCode":"\t}\n\n\t/**\n\t * Long paths are hashed to ensure they fit in the database\n\t */\n\tprivate function formatPath(string $path): string {\n\t\tif (strlen($path) > 250) {\n\t\t\treturn sha1($path);\n\t\t}\n\n\t\treturn $path;\n\t}\n\n\tprivate static function checkIsArrayOfScalar(string $name, array $array): void {\n\t\tforeach ($array as $item) {\n\t\t\tif (is_array($item)) {\n\t\t\t\tself::checkIsArrayOfScalar($name, $item);\n\t\t\t} elseif ($item !== null && !is_scalar($item)) {\n\t\t\t\tthrow new DavException(\n\t\t\t\t\t\"Property \\\"$name\\\" has an invalid value of array containing \" . gettype($item),\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @throws ParseException If parsing a \\Sabre\\DAV\\Xml\\Property\\Complex value fails\n\t * @throws DavException If the property value is invalid\n\t */\n\tprivate function encodeValueForDatabase(string $path, string $name, mixed $value): array {\n\t\t// Try to parse a more specialized property type first\n\t\tif ($value instanceof Complex) {\n\t\t\t$xml = $this->xmlService->write($name, [$value], $this->server->getBaseUri());\n\t\t\t$value = $this->xmlService->parse($xml, $this->server->getBaseUri()) ?? $value;\n\t\t}\n\n\t\tif ($name === '{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL') {","sourceCodeStart":587,"sourceCodeEnd":623,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/DAV/CustomPropertiesBackend.php#L587-L623","documentation":"Error \"Property \"$name\" has an invalid value of array containing {gettype($item)}\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/DAV/CustomPropertiesBackend.php:605 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"}