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

Upgrade database - Richtext <ezembed><ezlink><ezconfig> tag order breaks richtext

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Customer request, 4.5.6, 4.6.2
    • 4.6.0, 4.5.3
    • None
    • DXP 4.5.3
      Ubuntu 22
      Mysql 8

    • Yes

    Description

      We recently upgraded the EZOE into the Richtext XML.
      In doing so we saw that a specific XML syntax breaks the Richtext EDIT mode.
      View / display works just fine and we can see the text and embedded content with links on the front end ok (and even the Admin page).

      BROKEN: <ezlink above <ezconfig>
      ```
      <?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">
      <title ezxhtml:level="3">Test</title>
      <ezembed xlink:href="ezcontent://26003" view="embed" ezxhtml:align="right" ezxhtml:class="ibexa-embed-type-image">
      <ezlink xlink:href="ezlocation://25702" xlink:show="new"/>
      <ezconfig>
      <ezvalue key="size">medium</ezvalue>
      <ezvalue key="offset">0</ezvalue>
      <ezvalue key="limit">5</ezvalue>
      </ezconfig>
      </ezembed>
      </section>
      ```

      FIX: move the <ezlink> BELOW the <ezconfig>

      ```
      <?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">
      <title ezxhtml:level="3">Test</title>
      <ezembed xlink:href="ezcontent://26003" view="embed" ezxhtml:align="right" ezxhtml:class="ibexa-embed-type-image">
      <ezconfig>
      <ezvalue key="size">medium</ezvalue>
      <ezvalue key="offset">0</ezvalue>
      <ezvalue key="limit">5</ezvalue>
      </ezconfig>
      <ezlink xlink:href="ezlocation://25702" xlink:show="new"/>
      </ezembed>
      </section>
      ```

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              9eb34429-4ba7-4cec-9fd2-e83a1fdd6ac1@accounts.ibexa.co David Sayre
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: