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

Add Descriptive error messages in DDMStructureLocalServiceImpl and DDMTemplateLocalServiceImpl

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1 CE GA2
    • Fix Version/s: None
    • Component/s: Dynamic Data Lists
    • Labels:
      None
    • Fix Priority:
      3

      Description

      When a StructureNameException is thrown in DDMStructureLocalServiceImpl#validate(Map nameMap, Locale contentDefaultLocale):1690 there is no information on which data structure is problematic. It should thrown an descriptive message allowing the administrator to identify the problematic structure like:

      throw new StructureNameException("Missing " + contentDefaultLocale + " name definition on " + nameMap);
      

      There is also a similar situation involving DDMTemplateLocalServiceImpl:

      Add the name of the missing locale in the exception to help the administrator find the problematic record. See attachments below. (Originally from LPS-47255)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Days since last comment:
                5 years, 33 weeks, 6 days ago

                Packages

                Version Package