Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Dec 2015 at 19:05 UTC
Updated:
29 Mar 2016 at 02:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ultimikeComment #3
quietone commentedComment #4
quietone commentedTesting showed that if the attribute valid is NULL or '', then this does fail. This failure will whenever the attribute data is not a serialized string causing unserialize to return FALSE. Not sure why there would be unserializable data in that field. I wasn't able to get erroneous data in the attributes field through the UI and the source isn't mentioned in the IS. Still, we need to test it and make sure that $route['options']['attributes'] has meaningful data.
Tests have been added to MigrateNodeTest for the link values. There are a couples of patches here because I added 'bad' data to the attribute field in the test fixture for testing.
The attached patches
Note I never hit the breakpoint set in core/lib/Drupal/Core/Utility/LinkGenerator.php perhaps because I was testing with d6/MigrateNodeTest.
Comment #5
quietone commentedComment #8
benjy commentedWe need to leave the bad source data otherwise we're not actually testing the original issue. Also, super small issue I noticed below:
Bad indent on this line.
Comment #9
quietone commentedWell, don't know what I was thinking, definitely took the wrong path. Anyway, this should be a fail patch and fix.
thx benjy.
Comment #11
quietone commentedAdded a comment.
Comment #12
benjy commentedLooks good to me.
Comment #13
catchCommitted/pushed to all three 8.x branches, thanks!