Page MenuHomePhorge

D5133.1775303158.diff
No OneTemporary

Authored By
Unknown
Size
985 B
Referenced Files
None
Subscribers
None

D5133.1775303158.diff

diff --git a/src/app/DataMigrator/Driver/DAV.php b/src/app/DataMigrator/Driver/DAV.php
--- a/src/app/DataMigrator/Driver/DAV.php
+++ b/src/app/DataMigrator/Driver/DAV.php
@@ -100,8 +100,17 @@
break;
}
- if ($this->client->create($object) === false) {
- throw new \Exception("Failed to save DAV object at {$href}");
+ try {
+ if ($this->client->create($object) === false) {
+ throw new \Exception("Failed to save DAV object at {$href}");
+ }
+ } catch (RequestException $e) {
+ \Log::warning("Failed (code {$e->getCode()}) to save DAV object at {$href}:\n {$e->getMessage()}");
+ // 400 is returned on errors that only affect individual events,
+ // so we don't abort the migration because of that.
+ if ($e->getCode() != 400) {
+ throw new \Exception("Failed to save DAV object at {$href}");
+ }
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 11:45 AM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18829283
Default Alt Text
D5133.1775303158.diff (985 B)

Event Timeline