Problem/Motivation

The image style upgrade path does not take into account the new image style name/label change that was backported to Drupal 7.23 from #606598: Human readable image-style names. The ImageUpgradePathTest does not use a filled database otherwise this would have been caught by automated tests.

A manual test can be done to reproduce this. Clone Drupal and checkout 7.23 or greater. Install with the standard install. Prepare site for upgrade, checkout 8.x, and run the install. There will be no image styles after upgrade when there were before the upgrade (see screenshots).

Proposed resolution

  • Fix ImageUpgradePathTest
  • Fix image_update_8000()

Remaining tasks

  • Need patch
  • Need tests

User interface changes

None

API changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Issue tags: +D8 upgrade path

Good find. Tagging as an upgrade path issue.

mradcliffe’s picture

Issue tags: -D8 upgrade path

I might be incorrect about what introduced this bug, but it does exist.

mradcliffe’s picture

Issue tags: +D8 upgrade path

Darnit.

mradcliffe’s picture

Status: Active » Needs work
FileSize
1.94 KB

Here's a start to changing ImageUpgradePathTest.php, but I am not sure if the thumbnail image style needs to be added as a custom style or not.

Not sending it to the bot.

David_Rothstein’s picture

tim.plunkett’s picture

Status: Needs work » Closed (duplicate)

Yes.