From 7c663e0b01c4148fc74b230f62058cd5df801b51 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 9 Dec 2017 20:09:40 +0100 Subject: [PATCH] Issue #2927227: d6_url_alias migration fails when the src path in D6 contains no slashes X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM/Vb;]yA5\I~93>J<_`<4)A{':UrE The extract plugin in the d6_url_alias migration tries to get what might be a node id from the source path (e.g. 'node/1'), the extracted value will then be passed to a migrate_lookup plugin to fetch a node if the value is actually a nid. However this "lazy" extraction approach fails hard when the source path has no slashes (e.g. 'contact') because in these case the index 1 is invalid, resulting in this message: Array index missing, extraction failed. Fix migrating these paths by providing a dummy default value when the extraction fails. --- modules/path/migrations/d6_url_alias.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/path/migrations/d6_url_alias.yml b/core/modules/path/migrations/d6_url_alias.yml index fcf2036405..c5d793411e 100644 --- a/core/modules/path/migrations/d6_url_alias.yml +++ b/core/modules/path/migrations/d6_url_alias.yml @@ -27,6 +27,7 @@ process: delimiter: / - plugin: extract + default: 'INVALID_NID' index: - 1 - -- 2.15.1