nextcloud/server · error · Sabre\DAV\Exception

Property "$name" has an invalid value of array containing {g

Error message

Property "$name" has an invalid value of array containing {gettype($item)}

What it means

Error "Property "$name" has an invalid value of array containing {gettype($item)}" thrown in nextcloud/server.

Source

Thrown at apps/dav/lib/DAV/CustomPropertiesBackend.php:605

	}

	/**
	 * Long paths are hashed to ensure they fit in the database
	 */
	private function formatPath(string $path): string {
		if (strlen($path) > 250) {
			return sha1($path);
		}

		return $path;
	}

	private static function checkIsArrayOfScalar(string $name, array $array): void {
		foreach ($array as $item) {
			if (is_array($item)) {
				self::checkIsArrayOfScalar($name, $item);
			} elseif ($item !== null && !is_scalar($item)) {
				throw new DavException(
					"Property \"$name\" has an invalid value of array containing " . gettype($item),
				);
			}
		}
	}

	/**
	 * @throws ParseException If parsing a \Sabre\DAV\Xml\Property\Complex value fails
	 * @throws DavException If the property value is invalid
	 */
	private function encodeValueForDatabase(string $path, string $name, mixed $value): array {
		// Try to parse a more specialized property type first
		if ($value instanceof Complex) {
			$xml = $this->xmlService->write($name, [$value], $this->server->getBaseUri());
			$value = $this->xmlService->parse($xml, $this->server->getBaseUri()) ?? $value;
		}

		if ($name === '{urn:ietf:params:xml:ns:caldav}schedule-default-calendar-URL') {

View on GitHub (pinned to ecdeb153ff)

When it happens

Trigger: Thrown at apps/dav/lib/DAV/CustomPropertiesBackend.php:605 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nextcloud/server@ecdeb153ff (2026-08-17). Data as JSON: /api/errors/96c8f352d60e3e4a. Report an issue: GitHub.