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

stale links using non-translatable attribute

    Details

      Description

      When using a non-translatable content object attribute with urls, creating a new translation will result in stale/invalid site link.

      Steps to reproduce

      1. Setup a content class with a non-translatable ezurl attribute
      2. Create a content object, in language eng with url http://testurl.v1.en
      3. Create and publish new translation of the object in any other language (Version 2) - the ezurl attribute cannot be modified.
      4. Publish an additional version (3), in english once more, changing the url to http://testurl.v3.en

      Result:

      Both urls will be used by the linkcheck.php cronjob

      Expected result:

      According to the latest published version of the object, for any language, the (only) correct url should be http://testurl.v3.en

        Issue Links

          Activity

          Hide
          Joao Inacio (Inactive) added a comment - - edited

          @Note:

          When viewing the object in a frontend siteaccess in the second language (version 2), the untranslatable attributes are shown with the content from version 3 (main/original language).
          So, the problem seems specific to ezurl_object_link:

          • 1 link for version 1 ( 'url v1 en' )
          • 2 links for version 2 ( 'url v1 en', 'url v1 en' )
          • 3 links for version 3 ( 'url v1 en', 'url v3 en', 'url v3 en' )

          Table data is the following, for the last version:

          attribute_id version link_id
          '1957' '3' '297'
          '1957' '3' '298'
          '1949' '3' '298'
          Show
          Joao Inacio (Inactive) added a comment - - edited @Note: When viewing the object in a frontend siteaccess in the second language (version 2), the untranslatable attributes are shown with the content from version 3 (main/original language). So, the problem seems specific to ezurl_object_link : 1 link for version 1 ( 'url v1 en' ) 2 links for version 2 ( 'url v1 en', 'url v1 en' ) 3 links for version 3 ( 'url v1 en', 'url v3 en', 'url v3 en' ) Table data is the following, for the last version: attribute_id version link_id '1957' '3' '297' '1957' '3' '298' '1949' '3' '298'
          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/731
          Show
          Yannick Roger (Inactive) added a comment - Fixed it master: https://github.com/ezsystems/ezpublish-legacy/commit/fcfda35241f20e9787b61164c48d9fe23417b654
          Hide
          Yannick Roger (Inactive) added a comment -

          EZP-21465 has been created to clean up the lines introduced by this bug.

          Show
          Yannick Roger (Inactive) added a comment - EZP-21465 has been created to clean up the lines introduced by this bug.
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Inacio (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 2 days, 5 hours, 50 minutes
                2d 5h 50m