Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c1b5d37d
Commit
c1b5d37d
authored
Mar 07, 2016
by
catch
Browse files
Issue
#2681505
by benjy: Arbitrary files are created when migrating users with an empty picture
parent
134c533f
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/modules/migrate_drupal_ui/src/Tests/d6/MigrateUpgrade6Test.php
View file @
c1b5d37d
...
...
@@ -47,7 +47,7 @@ protected function getEntityCounts() {
'editor'
=>
2
,
'field_config'
=>
61
,
'field_storage_config'
=>
42
,
'file'
=>
4
,
'file'
=>
0
,
'filter_format'
=>
8
,
'image_style'
=>
5
,
'migration'
=>
105
,
...
...
core/modules/user/migration_templates/d6_user.yml
View file @
c1b5d37d
...
...
@@ -26,6 +26,7 @@ process:
plugin
:
migration
migration
:
d6_user_picture_file
source
:
uid
no_stub
:
true
destination
:
plugin
:
entity:user
md5_passwords
:
true
...
...
core/modules/user/src/Tests/Migrate/d6/MigrateUserTest.php
View file @
c1b5d37d
...
...
@@ -117,6 +117,10 @@ public function testUser() {
$file
=
File
::
load
(
$user
->
user_picture
->
target_id
);
$this
->
assertIdentical
(
basename
(
$source
->
picture
),
$file
->
getFilename
());
}
else
{
// Ensure the user does not have a picture.
$this
->
assertFalse
(
$user
->
user_picture
->
target_id
,
sprintf
(
'User %s does not have a picture'
,
$user
->
id
()));
}
// Use the API to check if the password has been salted and re-hashed to
// conform to Drupal >= 7 for non-admin users.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment