Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23423

Duplicate entries to ezurl_object_link table, using Xml-/RichText

    XMLWordPrintable

Details

    Description

      When creating or updating RichText field with content containing an external link, a double entry will be created in the ezurl_object_link table.

      Steps to reproduce:
      1. create content type with richtext field (remember to activate EzPublishXhtml5EditTestBundle to edit richtext in frontend)
      2. create a content (of above type) with 1 link
      3. update same content (add text to update)
      4. on DB verify that the ezurl_object_link is duplicated on object version 2
      5. verify the queries below:

      mysql> SELECT id, url FROM ezurl WHERE url LIKE "%google.com";
      +----+------------------------------+
      | id | url                          |
      +----+------------------------------+
      | 73 | http://google.com            |
      +----+------------------------------+
      
      mysql> SELECT * FROM ezurl_object_link WHERE url_id = 73;
      +----------------------------+---------------------------------+--------+
      | contentobject_attribute_id | contentobject_attribute_version | url_id |
      +----------------------------+---------------------------------+--------+
      |                        666 |                               1 |     73 |
      |                        666 |                               2 |     73 |
      |                        666 |                               2 |     73 |
      +----------------------------+---------------------------------+--------+
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rui.silva-obsolete@ez.no Rui Silva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: