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

Useless error messages editing web contents

    Details

      Description

      Steps to reproduce:

      1. Click on Creating of Basic Web Content
      2. Add a title
      3. Add the following content selecting the Code View first:
        <a href="/group/guest/home">Page</a>
      4. Publish

      Results:
      The following message is displayed: "Error. Your request failed to complete."

      Expected results:
      A more user friendly message is shown specifying that root of the problem (the URL /group/guest/home is wrong in this case)

      Technical explanation:
      Debugging the issue we detect that the URL is wrong in com.liferay.exportimport.internal.content.processor.LayoutReferencesExportImportContentProcessor#validateLayoutReferences. Taking this into account we should tell the user which is the specific problem so that he can fix it easily. This can be crucial to edit large contents.

      This happens for most of the errors the journal service returns, this is just an example. Please create a way to get the root cause from the service for all of them.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP75
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP5
                7.1.10.1 SP1
                7.1.2 CE GA3
                7.1.X
                Master