Commit graph

1598 commits

Author SHA1 Message Date
Anna Larch
0745fc5012 Move calendar objects between calendars instead of deleting and recreating them
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-03-16 12:48:50 +01:00
Côme Chilliet
8f97f722ec
Extends UserMigrationException in CalendarMigratorException
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-14 14:34:16 +01:00
John Molakvoæ
5ad55fad35
Merge pull request #31274 from nextcloud/fix/carddav-backend-1000-orache1 2022-03-11 16:59:37 +01:00
Pytal
eeec6142ca
Merge pull request #30963 from nextcloud/feat/calendar-migration 2022-03-10 11:34:11 -08:00
Carl Schwan
2cdaa28acc Don't recreate sql query each time
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-03-10 15:10:08 +01:00
Christopher Ng
e97701c6b0 Improve error handling and output messages
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-09 19:46:37 +00:00
Robin Appelman
8b22a463e9
Merge pull request #31266 from nextcloud/root-setup-mountprovider
move root mount setup to mountproviders
2022-03-04 13:44:05 +00:00
Julius Härtl
2ff0c972c9
Merge pull request #31124 from nextcloud/enh/diagnostics-logging
Diagnostics event logging to log
2022-03-02 12:00:44 +01:00
Christopher Ng
0cbb6d7ba9 Various minor updates
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-02 02:15:05 +00:00
Christopher Ng
aafb305fed Minor updates
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-02 01:59:15 +00:00
Christopher Ng
302a67f685 Integrate migrator
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-02 01:59:15 +00:00
Christopher Ng
4eff359441 Calendar export and import
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-02 01:59:15 +00:00
Christopher Ng
67ec9813e3 Make Sabre File exception messages translatable
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-01 23:29:33 +00:00
Julius Härtl
f13c150a56
Add logging around dav exec
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-02-28 11:24:41 +01:00
Robin Appelman
ec15020777
also handle expired pre-write shared lock on dav upload when not using part files
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-25 16:33:27 +01:00
Christoph Wurst
c01eb07756
Mark DAV background jobs as time sensitive/insensitive
* As a bonus they are now all using OCP base classes
* Strict typing is now enforced

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-02-22 13:55:06 +01:00
Christoph Wurst
d06716db21
Merge pull request #31295 from nextcloud/fix-cleaning-reminders
Fix cleaning reminders after subscription purge
2022-02-22 10:46:31 +01:00
Carl Schwan
cb7485e764 Fix more than 1000 entries in queries exception in CardDavBackend
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-21 14:30:00 +01:00
Thomas Citharel
9347fc188a
Fix cleaning reminders after subscription purge
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-21 11:36:09 +01:00
Louis
d721339262
Merge pull request #31195 from nextcloud/wrap_exception
Wrap S3 multipart upload exception
2022-02-21 11:27:55 +01:00
Louis Chemineau
bc2c02f451 Wrap S3 multipart upload exception
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-02-16 14:56:14 +01:00
Thomas Citharel
22f8c42f06
Clean reminders for calendar when deleting a subscription
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-15 10:15:46 +01:00
Thomas Citharel
6f9afa77b3
Consider only reminders with calendar data
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-15 10:15:46 +01:00
Vincent Petry
acba237ec5
Merge pull request #31178 from nextcloud/fix-dav-namespace-typo
Fix typo in DAV namespace registration
2022-02-15 09:50:43 +01:00
Thomas Citharel
46e9f6d0c5
Fix typo in DAV namespace registration
See b0afba6d65/sabre/dav/lib/DAV/Xml/Service.php (L43)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-14 20:58:29 +01:00
Thomas Citharel
f695b3af9a
Remove setting defaultUsernamePath dynamically
Since Sabre 3.0.6 this is no longer possible.

@see https://github.com/sabre-io/dav/pull/582

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-14 19:40:31 +01:00
Joas Schilling
b8e0a3dbdd
Use the new option to signaling insensitivity
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-07 13:54:54 +01:00
Maximilian Martin
33c698872b delete birthday calendar events permanently
Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
2022-02-02 09:19:03 -05:00
Robin Appelman
c712987878
send request id in response header
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-01 14:24:01 +01:00
Côme Chilliet
40cdc54ae8
Convert properties value to string before passing them to database
This avoids an error when passing a complex property to PROPPATCH under
 PHP >= 7.4.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-20 15:08:04 +01:00
Louis Chemineau
69b8044b8f Set the file's mtime from the headers in bulk upload
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-11 17:10:14 +01:00
John Molakvoæ
66ca9baed2
Merge pull request #29948 from nextcloud/enh/webdav-creationdate 2021-12-28 10:13:38 +01:00
Christoph Wurst
b005846d1f
Carefully filter out non matching time ranges for CalDAV search
When we search for CalDAV objects in the DB we take the first and last
occurence into account. For recurring events that is when they take
place the very first time and the very last time. Searching in a more
specific time range will still match this condition, because the
recurring event starts before the end of the requested range but ends
after the start of the requested range.

Sabre has filters for this. If we apply them on all seach objects of a
search with a time range, then only the recurring events actually taking
place at the time of the requested time range will be returned.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-13 15:58:31 +01:00
Joas Schilling
d5cb5a33dc
Convert strict_search to wildcard property and add psalm docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-08 19:24:16 +01:00
Joas Schilling
84d37143b0
Only wildcard search if enumeration is allowed
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-08 18:54:42 +01:00
John Molakvoæ
5223b0b611
Prevent writing invalid mtime
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-07 09:40:23 +01:00
Christoph Wurst
82fc20f9d2
Merge pull request #30054 from nextcloud/refactor/cleaner-dav-background-resource-job
 Clean up the DAV resource background job
2021-12-03 13:18:04 +01:00
Christoph Wurst
7b2fb9295e
Clean up the DAV resource background job
* Replace deprecated execute with executeQuery and executeStatement
* Close open cursors
* Drop phpdoc that only mirrors php type hints

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-02 16:38:48 +01:00
Christoph Wurst
98d4aefe43
Close open cursor in the caldav back-end
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-02 14:23:59 +01:00
Christoph Wurst
478953d002
Cast orphan subscription id to int
DB columns are of type int by default, so they need to be casted.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-12-01 10:48:14 +01:00
Julius Härtl
01be1447be
Expose DAV:creationdate for propfind/proppatch
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-29 11:25:48 +01:00
Vincent Petry
99f600270e
Merge pull request #29864 from nextcloud/bugfix/noid/dav-propfind-ctime
Allow to fetch the creation time of folders
2021-11-24 11:20:12 +01:00
Julius Härtl
a632ce35f5
Allow to fetch the creation time of folders
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-23 16:55:33 +01:00
Côme Chilliet
5cd5245ca8
Fix dav application tests and code for PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-23 09:29:01 +01:00
Christoph Wurst
98b963e8a2
Merge pull request #29661 from nextcloud/enhancement/calendar-search-properties-api
Document and type allowed property names for calendar property searches
2021-11-15 10:02:47 +01:00
Christoph Wurst
603a88f2ee
Fix loading all principal calendars in the dav app calendar provider
If we load all calendar infos of a principal then we get back an array
and not a single calendar info. This was handled incorrectly and an
array of calendar infos were passed to the calendar implementation,
resulting in interesting bugs.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-11 13:31:32 +01:00
Christoph Wurst
ca14c02301
Document and type allowed values for calendar property searches
For API users it looked like any properties could be searched. But it
turned out to be a hand picked list of properties that we index and then
use for the search. To prevent application errors where special props
are not found, I suggest we document and type the allowed values.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-11-11 10:57:04 +01:00
Anna Larch
da22791424 Force Calendar Obejct Chnage Path to support public write
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-08 16:06:39 +01:00
Anna Larch
bc68108f2a Fix missing calendar path for public write on Calendars
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-11-04 12:52:55 +01:00
John Molakvoæ
d6a26b2536
Revert "add dav plugin to trigger recalculating of checksums" 2021-11-01 11:26:17 +01:00