Problem/Motivation

A ConfigDuplicateUUIDException is thrown in facets_update_8001() with the following message: "Attempt to save a configuration entity 'search_api__views_page__search__page_1' with UUID '73c25fbf-c5c6-47ca-9356-74138fdeb382' when this UUID is already used for 'views_page__search__page_1'". This update hook was introduced in #2772745: Search API integration doesn't check/define feature support of backends.

Proposed resolution

Either remove this update hook (as 8.x-1.0-alpha8 release notes still say "No data update paths will be provided for Alpha versions of this module, so upgrading to this version, or from this to a later one, might discard some of your configuration."), or fix it.

Remaining tasks

Review, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Boobaa created an issue. See original summary.

Boobaa’s picture

Issue summary: View changes
Boobaa’s picture

Assigned: Unassigned » Boobaa

The problem is that this update hook loads the facet source, changes its ID and name, then tries to create a new one from it – without removing the UUID, so the to-be-created one would have the same UUID as the to-be-deleted old one.

Trying to come up with a patch.

Boobaa’s picture

Assigned: Boobaa » Unassigned
Issue summary: View changes
Status: Active » Needs review
FileSize
314 bytes
mmrares’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm this patch works.

  • borisson_ committed 38522fc on 8.x-1.x authored by Boobaa
    Issue #2862381 by Boobaa: Non-working upgrade path
    
borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks for the patch and confirmation that it works.

ayalon’s picture

Thx for the patch! Please make a new stable version because this is crucial!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.