From fa36dbda908debf9379f2fbe1a2846c8fdaef0e1 Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Thu, 12 Nov 2015 12:46:17 -0800 Subject: [PATCH] Issue #2553311 by mikeryan, quietone: Drupal file migrations need to urlencode paths --- core/modules/file/config/schema/file.destination.schema.yml | 3 +++ core/modules/file/migration_templates/d6_file.yml | 1 + core/modules/file/migration_templates/d7_file.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/core/modules/file/config/schema/file.destination.schema.yml b/core/modules/file/config/schema/file.destination.schema.yml index 5d494f7013f2..c6b197ffe56a 100644 --- a/core/modules/file/config/schema/file.destination.schema.yml +++ b/core/modules/file/config/schema/file.destination.schema.yml @@ -5,3 +5,6 @@ migrate.destination.entity:file: source_path_property: type: string label: 'Source path' + urlencode: + type: boolean + label: 'Whether to urlencode incoming file paths' diff --git a/core/modules/file/migration_templates/d6_file.yml b/core/modules/file/migration_templates/d6_file.yml index 07a9cc2d360f..a4693cf1120a 100644 --- a/core/modules/file/migration_templates/d6_file.yml +++ b/core/modules/file/migration_templates/d6_file.yml @@ -23,3 +23,4 @@ process: uid: uid destination: plugin: entity:file + urlencode: true diff --git a/core/modules/file/migration_templates/d7_file.yml b/core/modules/file/migration_templates/d7_file.yml index ea8f647f11d3..b10cca614407 100644 --- a/core/modules/file/migration_templates/d7_file.yml +++ b/core/modules/file/migration_templates/d7_file.yml @@ -23,3 +23,4 @@ process: destination: plugin: entity:file source_path_property: filepath + urlencode: true -- GitLab