Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Aug 2015 at 01:40 UTC
Updated:
27 Oct 2015 at 19:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedHere is a fix but still needs tests. Credit goes to phenaproxima for the fix. I still don't get annotations...
Comment #3
phenaproximaThe test should rename or drop the ImageCache table, then try to execute the d6_imagecache_presets migration and expect to catch a PDOException. Something like:
Comment #4
phenaproximaOne other thing -- we'll need a fail patch, which includes the exception test but NOT the fix -- which will deliberately fail testbot in order to prove that the problem exists. Then we need another patch that includes the test AND the fix, which should pass testbot, in order to prove that the fix fixes the problem :) When all this is here, I will merrily RTBC.
In the meantime, this prevents people from running full-site D6 migrations if they don't have ImageCache installed, so I'm escalating it to Migrate critical.Comment #5
phenaproximaActually, ix-nay on that escalation. This problem only breaks the ImageCache migrations.
Comment #6
quietone commented@phenaproxima, even with your code example I'm not able to make an exception test. Will you PM when you have some time to assist?
Comment #7
quietone commented@phenaproxima, two patches here.
With both patches the exception is thrown and in both cases the execption is caught in MigrateExecutable line 315.
Comment #10
phenaproximaFixed!
Frankly, the test is pretty pointless because requirements checking is absolutely not limited to the ImageCache source plugin; it's part of all Migrate Drupal source plugins. However, in the interest of buttering up the committers, we can leave the test in, at least for now, since there is (as far as I know) no other, extensive coverage of checkRequirements().
Comment #11
quietone commentedthx, phenaproxima. I see what I did wrong.
+1 RTBC
Comment #12
phenaproximaI'll take your "+1 RTBC" to mean "full-fledged RTBC". :)
Comment #14
lostkangaroo commentedA quick reroll, caused by #2533800: Remove all unused use statements from core
Comment #15
lostkangaroo commentedInteresting double feature
Comment #16
lostkangaroo commentedPending testbot
Comment #17
anavarreThanks @quietone for pointing me to this issue. I can also confirm it fixes the error for me on a vanilla D6 site with no ImageCache installed.
Comment #18
webchickNice one, heard someone at DrupalCon raising this issue while trying to test D6 -> D8, glad to see it fixed + test coverage.
Since these changes are self-contained against an experimental module, I believe that makes this eligible for commit during RC. Tagging.
Committed and pushed to 8.0.x. Thanks!