Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117831750
D5133.1775303158.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
985 B
Referenced Files
None
Subscribers
None
D5133.1775303158.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5133: Continue with migration on 400 error code
Attached
Detach File
Event Timeline