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

'ezurl_object_link' table not updated after link deletion

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Create a new article, fill in all necessary details;
      2. Add an HTTP link on the "body" field e.g. http://partner1.com/;
      3. Verify that a new record was created in the 'ezurl_object_link' DB table for the new article link:

      +----------------------------+---------------------------------+--------+
      | contentobject_attribute_id | contentobject_attribute_version | url_id |
      +----------------------------+---------------------------------+--------+
      |                        669 |                               1 |     67 |
      +----------------------------+---------------------------------+--------+
      

      4. Edit the article, add a new HTTP link on the "body" field e.g. http://partner2.com/, and store as draft;
      5. There will be following records in the 'ezurl_object_link' table at this stage:

      +----------------------------+---------------------------------+--------+
      | contentobject_attribute_id | contentobject_attribute_version | url_id |
      +----------------------------+---------------------------------+--------+
      |                        669 |                               1 |     67 |
      |                        669 |                               2 |     67 |
      |                        669 |                               2 |     68 |
      +----------------------------+---------------------------------+--------+
      

      ...which is correct.
      6. Edit the draft, remove link 1 e.g. http://partner1.com/ and publish;
      7. After this, 'ezurl_object_link' should have these records:

      +----------------------------+---------------------------------+--------+
      | contentobject_attribute_id | contentobject_attribute_version | url_id |
      +----------------------------+---------------------------------+--------+
      |                        669 |                               1 |     67 |
      |                        669 |                               2 |     68 |
      +----------------------------+---------------------------------+--------+
      

      Instead, it has these:

      +----------------------------+---------------------------------+--------+
      | contentobject_attribute_id | contentobject_attribute_version | url_id |
      +----------------------------+---------------------------------+--------+
      |                        669 |                               1 |     67 |
      |                        669 |                               2 |     67 |
      |                        669 |                               2 |     68 |
      +----------------------------+---------------------------------+--------+
      

      There should not be URL#67 for Version#2 because it was removed on step #6.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h