Paragraph with image or media field has incorrect parent uuid

Created on 16 October 2023, over 1 year ago

Problem/Motivation

Paragraph with image or media field has incorrect parent uuid and therefore not rendered or appear in the node edit form

Steps to reproduce

Create a paragraph bundle with an image or media reference field. Add paragraph bundle to node and review the parent uuid in the paragraphs_item_field_data behavior_settings column. The uuid assigned to the bundle is it's own uuid and not the parent's . This occur regardless of whether or not the paragraph bundle is nested in a layout.

When I edit the paragraph before I save the changes, I get the following error:
"\nAn AJAX HTTP error occurred.\nHTTP Result Code: 500\nDebugging information follows.\nPath: /layout-paragraphs-builder/a715b00ff31f1effd8bce9ba133e7ddf/edit/029d4211-ced2-4197-9efc-c66df2ff67d6?_wrapper_format=drupal_dialog&ajax_form=1\nStatusText: 500 Service unavailable (with message)\nResponseText: The website encountered an unexpected error. Please try again later."

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sharkbaitdc

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

Comments & Activities

  • Issue created by @sharkbaitdc
  • πŸ‡ΊπŸ‡ΈUnited States sharkbaitdc

    Please ignore the ajax error. I think it's caused by the mailchimp block I'm trying to embed. The main issue is the parent uuid.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    @sharkbaitdc could you eventually add a test reproducing the steps and showing the issue (expected vs. actual)?

  • First commit to issue fork.
  • πŸ‡ΊπŸ‡¦Ukraine sickness29

    Hi @sharkbaitdc
    this issue is not reproducible on clean drupal instance, also I could not think of a test to add as no feature is broken when image/media paragraph is used, node edit works as expected despite your claims.
    Please expand what exactly is not working and steps to reproduce this on clean drupal, thanks

Production build 0.71.5 2024