Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86810

When attempting to delete an Asset Display Page in use by an asset, the error message is too generic

Details

    Description

      Description
      The error message for when we attempt to delete an Asset Display Page in use in 7.1.x is:

      Error:You cannot delete asset display pages that are used by one or more assets.
      

      The error message has recently changed in master:

      Error:One or more entries could not be deleted.
      

      The new error message is very generic and not helpful to the user. The old error message is much more useful to why we cannot delete the asset display page, especially when their assets become very large (and they have difficulty keeping track of everything)

      Steps to Reproduce

      1. Create some Page Fragments
      2. Create an Asset Display Page with the Page Fragments
      3. Map Basic WC to the Asset Display Page
      4. Publish Asset Display Page
      5. Create WC and set the Asset Display Page as the Display Page
      6. Try to delete the Asset Display Page

      Expected Result
      Useful error message appears

      Actual Result
      Generic and uninformative error message appears

      Tested on Tomcat 9.0.10 + MySQL 5.7
      Portal master GIT ID: b68aaeb5f17f645ee7c9226d5312d5445725938c

      Attachments

        Activity

          People

            brian.chiu Brian Chiu (Inactive)
            kyle.miho Kyle Miho
            Marta Elicegui Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              4 years, 4 weeks, 4 days ago

              Packages

                Version Package
                7.2.X
                Master