{"record":{"id":"0d2bec39539d7c56","repo":"nextcloud/server","slug":"property-name-has-an-invalid-value-e-getmes","errorCode":null,"errorMessage":"Property \"$name\" has an invalid value: {$e->getMessage()}","messagePattern":"Property \"\\$name\" has an invalid value: (.+?)","errorType":"exception","errorClass":"Sabre\\DAV\\Exception","httpStatus":500,"severity":"error","filePath":"apps/dav/lib/DAV/CustomPropertiesBackend.php","lineNumber":630,"sourceCode":"\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') {\n\t\t\t$value = $this->encodeDefaultCalendarUrl($value);\n\t\t}\n\n\t\ttry {\n\t\t\t$this->validateProperty($path, $name, $value);\n\t\t} catch (DavException $e) {\n\t\t\tthrow new DavException(\n\t\t\t\t\"Property \\\"$name\\\" has an invalid value: \" . $e->getMessage(),\n\t\t\t\t0,\n\t\t\t\t$e,\n\t\t\t);\n\t\t}\n\n\t\tif (is_scalar($value)) {\n\t\t\t$valueType = self::PROPERTY_TYPE_STRING;\n\t\t} elseif ($value instanceof Complex) {\n\t\t\t$valueType = self::PROPERTY_TYPE_XML;\n\t\t\t$value = $value->getXml();\n\t\t} elseif ($value instanceof Href) {\n\t\t\t$valueType = self::PROPERTY_TYPE_HREF;\n\t\t\t$value = $value->getHref();\n\t\t} else {\n\t\t\tif (is_array($value)) {\n\t\t\t\t// For array only allow scalar values\n\t\t\t\tself::checkIsArrayOfScalar($name, $value);","sourceCodeStart":612,"sourceCodeEnd":648,"githubUrl":"https://github.com/nextcloud/server/blob/ecdeb153ffdf227235c9a7e2d13dbe0f9c817bc3/apps/dav/lib/DAV/CustomPropertiesBackend.php#L612-L648","documentation":"Error \"Property \"$name\" has an invalid value: {$e->getMessage()}\" thrown in nextcloud/server.","triggerScenarios":"Thrown at apps/dav/lib/DAV/CustomPropertiesBackend.php:630 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"}