cookies_update_8008 fails when upgrading directly from 1.1.3

Created on 7 March 2023, over 1 year ago

Problem/Motivation

When upgrading from 1.1.3 version to 1.2.2, the cookies_update_8008 fails with the following error:

Integrity constraint violation: 1062 Duplicate entry 'nl-15141' for key 'PRIMARY': INSERT INTO "locales_target" ("lid", "language", "translation", "customized") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array
> (
> [:db_insert_placeholder_0] => 15141
> [:db_insert_placeholder_1] => nl
> [:db_insert_placeholder_2] =>
> [:db_insert_placeholder_3] => 1
> )
>

Steps to reproduce

1. composer require drupal/cookies --update-with-dependencies

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.2

Component

Code

Created by

🇲🇬Madagascar joflizn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joflizn
  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Hi and thank @joflizn, having a look at https://git.drupalcode.org/project/cookies/-/blob/2.x/cookies.install#L170 it doesn't make any sense to me from the code perspective.

    This is an issue with locales, my guess is, that there's an issue unrelated to cookies with your Drupal installation and especially entries in the locale table.

    If you can reproduce this with a clean installation, I'm willing to dig deeper, but 95% sure this is not a cookies issue, sorry.

Production build 0.71.5 2024