Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps/dav
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-07-08 23:13:19 +0300
committerGitHub <noreply@github.com>2022-07-08 23:13:19 +0300
commit927b6d635f3bb8c0c2dc26612b0f3aed6678befe (patch)
treebc505740b36be64ba80f98173e28d1dfdb55d6ef /apps/dav
parentb4031dc478beacf525098451b95fae8689b6721f (diff)
parent5f31d4b0bf1b9f45da580fc63d6112846097d4e6 (diff)
Merge pull request #33118 from nextcloud/fix/address-book-export
Fix empty address books being exported
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/UserMigration/ContactsMigrator.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php
index ae1a61ce4f4..d2ba82eb2e5 100644
--- a/apps/dav/lib/UserMigration/ContactsMigrator.php
+++ b/apps/dav/lib/UserMigration/ContactsMigrator.php
@@ -131,6 +131,10 @@ class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
}
}
+ if (count($vCards) === 0) {
+ throw new InvalidAddressBookException();
+ }
+
return [
'name' => $addressBookNode->getName(),
'displayName' => $addressBookInfo['{DAV:}displayname'],