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

Misleading error message on deleted embed objects

    Details

      Description

      Steps to reproduce:

      1. Prepare an eZ Publish 4.7 installation, fully patched;
      2. Login to admin interface;
      3. Create an article object (Article 1);
      4. Create another article object (Article 2), embed Article 1 into an eZXML attribute - used "Body" - and publish;
      5. Article 1 was correctly embedded into Article 2;
      6. Delete Article 1;
      7. Edit Article 2.

      Article 1 is still listed as embedded in "Body", with the message "You do not have permission to view this object.";

        Issue Links

          Activity

          Hide
          Nuno Oliveira (Inactive) added a comment -

          Note: still, if you try to publish Article 2, the following message is displayed:

          The draft could not be stored.
           
          Required data is either missing or is invalid:
          Body: Some objects used in embed(-inline) tags have been deleted and are no longer available.

          Show
          Nuno Oliveira (Inactive) added a comment - Note: still, if you try to publish Article 2, the following message is displayed: The draft could not be stored.   Required data is either missing or is invalid: Body: Some objects used in embed(-inline) tags have been deleted and are no longer available.
          Hide
          Yannick Roger (Inactive) added a comment -

          The fact that xmltext are not updated is not a bug, it is meant to work like that. Changing it would be a feature request.

          The real problem is the error message displayed in the XML text that is misleading. So I am changing the title of this issue to reflect the fix that is going to be provided.

          Show
          Yannick Roger (Inactive) added a comment - The fact that xmltext are not updated is not a bug, it is meant to work like that. Changing it would be a feature request. The real problem is the error message displayed in the XML text that is misleading. So I am changing the title of this issue to reflect the fix that is going to be provided.
          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/1076
          Show
          Yannick Roger (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-legacy/commit/4de539407c0253a93d9f8a80553b1249728951b1
          Show
          Yannick Roger (Inactive) added a comment - - edited Fixed in: eZ Publish 5.3: https://github.com/ezsystems/ezpublish-legacy-ee/commit/30fa6e9eccc83ccd97b8de3dce22db1ffe54dacc eZ Publish 5.2: https://github.com/ezsystems/ezpublish-legacy-ee/commit/ef3c5bcb339ca1597260bfd8c7bc119e463c9c97 eZ Publish 5.1: https://github.com/ezsystems/ezpublish-legacy-ee/commit/295e3306e746b53a3566c7d187896060464828c2 eZ Publish 5.0: https://github.com/ezsystems/ezpublish-legacy-ee/commit/5b6d111a4648dedb99ffa34fd9b412572e25d57a ezoe 5.5 (eZ Publish 4.7): https://github.com/ezsystems/ezoe/commit/8ff5f7777a75b9a55ff81398921ec08e78763b48
          Hide
          Rui Silva (Inactive) added a comment - - edited

          Tested with tc-2257 for 4.7, 5.0, 5.1, 5.2, 5.3 and master.
          Approved by QA.

          Show
          Rui Silva (Inactive) added a comment - - edited Tested with tc-2257 for 4.7, 5.0, 5.1, 5.2, 5.3 and master. Approved by QA.

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 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 hours
                2h