Skip to content

[BUG] Treebeard 4.5 leads to major issue #6980

@jbpenrath

Description

@jbpenrath

Description

Release of django-treebeard 4.5 seems introduce breacking change from django-cms.

IntegrityError at /en/admin/cms/page/add-plugin/

duplicate key value violates unique constraint "cms_cmsplugin_path_4917bb44_uniq"
DETAIL:  Key (path)=() already exists.

Steps to reproduce

Steps to reproduce the behavior:

  1. Install a fresh django-cms or update your dependencies to have treebeard 4.5 installed
  2. Create a page with no content
  3. Publish it
  4. Edit it then add a plugin
  5. Save our plugin content
  6. Then boom !

Expected behaviour

I should be able to add a plugin without error.

Actual behaviour

An error occured when I try to save a plugin.

Screenshots

Capture d’écran 2021-02-18 à 12 05 53

Additional information (CMS/Python/Django versions)

Python: 3.6.11
Django-CMS: 3.8.0

I reproduced this error on a fresh install from Divio.

Quick workaround : Rollback to treebeard 4.4

We identify the following change as potential source of this issue. django-treebeard/django-treebeard#192

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions