Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5056

Wrong behavior embedded image in rich text in existing contents after the update from 3.3 to 4.3

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Customer request, 4.4.2
    • 4.4.0, 4.3.3
    • Content
    • None

    Description

      Steps to reproduce

      1. Install Ibexa DXP v3
      2. Add image
      3. Create content Article and embed the added image into the intro field
      4. Publish
      5. Perform platform updates to 4.4
      6. Edit the created article and check the image in the intro field 

      Or

      1. Install Ibexa DXP v4
      2. Add image
      3. Use migration file (Please remember to change the id to id added image in ezcontent://66):
      -
          type: content
          mode: create
          metadata:
              contentType: article
              mainTranslation: eng-GB
              creatorId: 14
              modificationDate: '2023-02-08T12:25:33+00:00'
              publicationDate: '2023-02-08T12:23:16+00:00'
              remoteId: d23035af79ebbac4cf3001d90dd4030c
              alwaysAvailable: false
              section:
                  id: 1
                  identifier: standard
          location:
              parentLocationId: 2
              parentLocationRemoteId: f3e90596361e31d496d4026eb624c983
              locationRemoteId: 3347540238c0d3fec02597dabc4524d6
              hidden: false
              sortField: 1
              sortOrder: 1
              priority: 0
          fields:
              -
                  fieldDefIdentifier: title
                  languageCode: eng-GB
                  value: 'New article'
              -
                  fieldDefIdentifier: short_title
                  languageCode: eng-GB
                  value: null
              -
                  fieldDefIdentifier: author
                  languageCode: eng-GB
                  value:
                      -
                          id: '1'
                          name: 'Administrator User'
                          email: admin@link.invalid
              -
                  fieldDefIdentifier: intro
                  languageCode: eng-GB
                  value:
                      xml: |
                          <?xml version="1.0" encoding="UTF-8"?>
                          <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>dsadas</para><ezembed xlink:href="ezcontent://66" view="embed" ezxhtml:class="ez-embed-type-image"><ezconfig><ezvalue key="size">medium</ezvalue></ezconfig></ezembed></section>
              -
                  fieldDefIdentifier: body
                  languageCode: eng-GB
                  value:
                      xml: |
                          <?xml version="1.0" encoding="UTF-8"?>
                          <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/>
              -
                  fieldDefIdentifier: enable_comments
                  languageCode: eng-GB
                  value: false
              -
                  fieldDefIdentifier: image
                  languageCode: eng-GB
                  value:
                      destinationContentId: null
      1. Run migration
      2. Edit the created article and check the image in the intro field 

       

      Result

      There is an embed icon instead of an image

       

      Expected Result

      After a proper update, the image should reappear properly

       

      Note

      A problem similar to that with a namespace in rich text after the update. We should extend exists/create a new command that will allow all elements in XML to be updated - We need to check if any other item may still be causing problems

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: