Incorrect image src synced to client site

Created on 12 September 2023, 10 months ago

Problem/Motivation

When I have 2 different images in a body field, I end up with two identical images after the node is created or updated on a client site.

This occurs when I upload images in CKEditor 5, and the image gets uploaded to the public files directory. On the client site, the path of the first image appears to get overwritten with the path to the second image, resulting in two identical images.

It is just the image src that is being overwritten. The data-entity-uuid and alt text remain correct.

Example markup on Entity Server site:

<p>
  <img src="/sites/default/files/inline-images/first-image.jpg" data-entity-uuid="f9442c18-9aca-4ec8-85fe-4c22446ab6a2" data-entity-type="file" alt="First Image">
</p>

<p>
  <img src="/sites/default/files/inline-images/second-image.jpg" data-entity-uuid="f9661d18-9xda-4cc8-91fe-4c66546ab6a2" data-entity-type="file" alt="Second Image">
</p>

Resulting markup after pull on Entity Client site:

<p>
  <img src="/sites/default/files/inline-images/second-image.jpg" data-entity-uuid="f9442c18-9aca-4ec8-85fe-4c22446ab6a2" data-entity-type="file" alt="First Image">
</p>

<p>
  <img src="/sites/default/files/inline-images/second-image.jpg" data-entity-uuid="f9661d18-9xda-4cc8-91fe-4c66546ab6a2" data-entity-type="file" alt="Second Image">
</p>

Steps to reproduce

Drupal version 10.1.2 (upgraded from D9)
Entity Share 8.x-3.0
PHP 8.1.21

πŸ› Bug report
Status

Active

Version

3.0

Component

Entity Share Client

Created by

πŸ‡¨πŸ‡¦Canada gocaps

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

Comments & Activities

Production build 0.69.0 2024