From bd8b2137e20a4d70bd643c32653c618ade685941 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 21 Dec 2021 16:17:13 +0100 Subject: Allow DAV Object properties The current implementation only saves them as string. It seems they can be more complex than that, and that objects were saved directly. You may find such objects saved in some production databases by executing: ```sql SELECT * from oc_properties where propertyvalue = 'Object'; ``` This commit adds a repair job to clean all of these "broken" properties values, adds a new database column to save the type of the property, and handles converting from and to correct values. Implementation is very similar to SabreDAV's own PDO backend: https://github.com/nextcloud/3rdparty/blob/4921806dfb1c5c309eac60195ed34e2749baf3c1/sabre/dav/lib/DAV/PropertyStorage/Backend/PDO.php Signed-off-by: Thomas Citharel --- apps/dav/appinfo/info.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/dav/appinfo/info.xml') diff --git a/apps/dav/appinfo/info.xml b/apps/dav/appinfo/info.xml index 10f78d8332a..deb99b1c33b 100644 --- a/apps/dav/appinfo/info.xml +++ b/apps/dav/appinfo/info.xml @@ -5,7 +5,7 @@ WebDAV WebDAV endpoint WebDAV endpoint - 1.23.0 + 1.24.0 agpl owncloud.org DAV @@ -39,6 +39,7 @@ OCA\DAV\Migration\RemoveOrphanEventsAndContacts OCA\DAV\Migration\RemoveClassifiedEventActivity OCA\DAV\Migration\RemoveDeletedUsersCalendarSubscriptions + OCA\DAV\Migration\RemoveObjectProperties OCA\DAV\Migration\ChunkCleanup -- cgit v1.2.3