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

There is no enough information about exceptions in layout-admin-web and layout-page-template-admin-web

    Details

      Description

      There is no enough information about exceptions in *MVCActionCommand classes of layout-admin-web and layout-page-template-admin-web.

      Current exception handling maps the most common exceptions to error messages, but there is a generic "An unexpected error occurred" and it is difficult to diagnose it, see:

      To make this diagnose more easy, we have to include a _log.debug everytime we catch a generic PortalException or Exception, for example:

      We should also add an _log.error for every exception mapped to the generic "An unexpected error occurred"

      Steps to reproduce

      1. Go to "Control Panel" => "Server Administration" => "Log Levels"
      2. Activate DEBUG traces for "com.liferay.layout" category
      3. Go to Site => Design => Page Templates
      4. Create a "Display Page Templates" called "test1"
      5. Create another "Display Page Templates" called "test1"
      6. A "A page template entry with that name already exists." message will be displayed in the user interface
      7. Check log file:
        • Expected behavior: a DEBUG trace with LayoutPageTemplateEntryNameException$MustNotBeDuplicate exception will be displayed in the log file
        • Wrong behavior: no DEBUG trace will be displayed in the log file

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Tomáš Polešovský
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.2.10 DXP FP8
                  7.2.10.3 DXP SP3
                  7.2.X
                  7.3.5 CE GA6
                  7.3.10 DXP GA1
                  Master