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

'ezurl_object_link' table not updated after link deletion

    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.

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment - - edited

          Tested and confirmed on 5.4.5, could be a bug, but there is no known broken functionality due to this.

          Show
          Gunnstein Lye added a comment - - edited Tested and confirmed on 5.4.5, could be a bug, but there is no known broken functionality due to this.
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for 5.4.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for 5.4.

            People

            • Assignee:
              Unassigned
              Reporter:
              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