Commit graph

1683 commits

Author SHA1 Message Date
Vincent Petry
08655a1497
Merge pull request #32800 from nextcloud/bugfix/noid/no-fatal-for-maintenance-mode
Don't spam the log with fatals when maintenance mode is enabled or an…
2022-06-10 15:02:37 +02:00
Thomas Citharel
c6c3fd9aa9
Avoid creating carddav activities for the system user
Because of the system addressbook synchronisation.

Closes #32803

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-06-10 09:07:53 +02:00
Joas Schilling
8e3b30f388
Don't spam the log with fatals when maintenance mode is enabled or an upgrade has to be done
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-06-10 00:36:52 +02:00
Christoph Wurst
ca45e6a064
Merge pull request #28703 from nextcloud/enhancement/caldav-reminders-logging
Debug log what happens during reminders processing
2022-06-02 14:29:58 +02:00
Christopher Ng
57c66bf7cb Use Image class from public API
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-06-02 00:37:36 +00:00
Christoph Wurst
4e5ed32025
Merge pull request #32471 from nextcloud/fix-wrong-dav-activities
Make sure activities are not created when a deleted calendar object expires
2022-06-01 17:01:58 +02:00
Christoph Wurst
58f7a150ed
Debug log what happens during reminders processing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-06-01 11:38:02 +02:00
Carl Schwan
1b426eda44 Make X-HAS-{MD5/SHA256} opt-in
This is not always needed and slow down the upload

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-01 10:59:04 +02:00
Christopher Ng
aaedc95e81 Update calendar estimation
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-05-30 22:48:15 +00:00
Christopher Ng
9fbbbc7ca6 Update contacts estimation
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-05-30 17:49:05 +00:00
Christopher Ng
432bc9a585 Update method name
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-05-30 17:49:05 +00:00
Côme Chilliet
6da413f7af Move new IMigrator method to a specific interface ISizeEstimationMigrator
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Côme Chilliet
09917b8583 Implement getExportEstimatedSize in migrators
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-30 07:36:13 +00:00
Joas Schilling
95f390d368
Merge pull request #32580 from nextcloud/bugfix/noid/fix-handling-events-without-name
Fix handling events without names in activities
2022-05-25 09:11:05 +02:00
Joas Schilling
2c670f9cf9
Also trim the name
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-25 08:06:32 +02:00
Carl Schwan
d6158c8aea
Merge pull request #32548 from nextcloud/fix/return-type
Fix return type and make type stricter
2022-05-24 20:46:23 +02:00
Joas Schilling
ba684f5c58
Fix handling events without names in activities
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-24 17:04:56 +02:00
Carl Schwan
3ada267a02 Fix return type and make type stricter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-24 12:05:17 +02:00
Thomas Citharel
424fc1b736
Rename user-agent used by the Webcal Refresh Service
Some services don't like the "crawler" inside the previous user-agent.

Closes https://github.com/nextcloud/calendar/issues/4232

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-20 16:23:40 +02:00
Thomas Citharel
cf8b98bf5f
Make sure activities are not created when a deleted calendar object expires
Closes https://github.com/nextcloud/activity/issues/784

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-18 11:17:27 +02:00
Anna Larch
440f69bd69
Add email validation
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-05-18 07:54:30 +02:00
Carl Schwan
07c9bf1adf
Merge pull request #31943 from nextcloud/dav-cleanup
Cleanup dav
2022-05-17 14:59:59 +02:00
Carl Schwan
f7be76125f Fix more psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-16 11:05:54 +02:00
Carl Schwan
e71db40492 Wrap multiple inserts inside a transation
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-12 21:02:53 +02:00
Carl Schwan
eef973e85b Minor optimizations for saving user personal information
* Remove double hook: the OC_User::changeUser triggers an
OC\AccountManager::userUpdated and the app is already listening to this
signal in its Application definition

* Make createCard not check if an card exists if we already checked
  previously. We also don't try to get the card if the user is disabled
  as we don't use the card in this case

We this change we go from 100 DB requests to 80 DB requests when saving
an user email address.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit c6fd482edf33214a9ad4787e4cac278f871fa7c8)
2022-05-12 21:02:52 +02:00
Carl Schwan
829490ab7a Cleanup dav
- Remove unused class AppEnabledPlugin
- Add more type hinting when possible

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-05 22:03:59 +02:00
Carl Schwan
645bc022e2
Merge pull request #32262 from nextcloud/fix/noid/extra-leading-minus
Remove leading "minus"
2022-05-04 13:48:54 +02:00
Louis
7ccfddbe64
Merge pull request #31963 from nextcloud/feat/use_setting_in_dav_search
Use share setting in DAV search
2022-05-04 13:38:03 +02:00
Julien Veyssier
af8b7835b8
remove leading minus which thankfully crashes because this operand does not apply to PsrLoggerAdapter
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-05-04 10:51:23 +02:00
Côme Chilliet
3f132d5678
Fix use of $logger from another scope in apps/dav/lib/Server.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:52:44 +02:00
Côme Chilliet
771028dada
Add missing use for LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:52:44 +02:00
Côme Chilliet
5fb9de6248
Migrate last instances of $server::getLogger() from dav
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:52:44 +02:00
Côme Chilliet
e2531f8503
Migrate dav application from ILogger to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:52:43 +02:00
Thomas Citharel
5494dd736d
Handle processing reminders for calendar objects with an infinite number
of recurrences

Closes #29896

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-27 17:17:22 +02:00
Robin Appelman
54ac585bc5
add logging of failed quota info
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 15:29:30 +02:00
Julius Härtl
a54fc45311
Add known dav properties to ignore list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-21 17:01:42 +02:00
Christopher Ng
522cc891c7 Fix warning
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-04-20 04:47:58 +00:00
Christopher Ng
e7f293ba63 Update naming of address book exports
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-04-20 04:46:28 +00:00
Christopher Ng
e670f692cc Fix export of shared calendars
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-04-20 04:43:30 +00:00
Louis Chemineau
e8ab298d2c Use email settings in DAV search
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-04-19 16:23:08 +02:00
Louis Chemineau
70c56b411e Use share setting in DAV search
shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-04-19 12:51:57 +02:00
Vincent Petry
0824f440f0
Merge pull request #31886 from nextcloud/bugfix/noid/principal-search-case-insensitive-dn
Principal search by display name case insensitive
2022-04-14 15:07:25 +02:00
Vincent Petry
3ca797129c
Merge pull request #31839 from nextcloud/feat/metadata-server
Add a metadata service to store file metadata
2022-04-14 13:39:31 +02:00
Carl Schwan
1c7ecfc544 Fix an issue with the search backend update
And update autoloader

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-14 12:11:02 +02:00
Vincent Petry
78c8e57896
Fix migrators according to exceptions
Fixed syntax errors.
Removed if condition for copyToFolder since it's void now.
Change signature of setMigratorVersions to also be void.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-13 16:52:40 +02:00
Côme Chilliet
0fd72f4355
Adapt existing migrators to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-13 16:52:40 +02:00
Carl Schwan
7817845538 Add a metadata service to store file metadata
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-13 14:06:29 +02:00
Joas Schilling
c233acce14
Merge pull request #31942 from nextcloud/fix/dav-deprecated-warning
Fix warning about optional parameter before required one
2022-04-13 07:31:16 +02:00
Côme Chilliet
2049a21348
Fix warning about optional parameter before required one
Fixes this warning:
PHP Deprecated:  Required parameter $logger follows optional parameter $principalPrefix in /var/www/html/apps/dav/lib/CalDAV/CalendarRoot.php on line 37

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-12 14:26:24 +02:00
Valdnet
13b5118c76
l10n: Remove comma
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-04-12 10:15:10 +02:00