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

Duplicate name error is not shown when creating page templates

    Details

      Description

      Steps to reproduce it:

      1. Startup the server
      2. Go to the Global Site/Site Builder/Page Templates
      3. Create a page template called "Article"
      4. Create a page template with the same name again

      Current results:

      You only get Error: Your request failed to complete (see attached image)

      Expected results:

      You get an error which shows the reason for the failure

       

      Technical notes:

      Probably the error is shown because of the unique index in the LayoutPageTemplateEntry. We store the default name there.

      The root of the issue is that we store the name as XML in the parent table, LayoutPrototype table so there is no way to validate it. One approach to improve this is to have a localization table as JournalArticle has. Right now we can't create two templates with the same name because of the mentioned index but we can do it for non-default languages.

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              alberto.chaparro Alberto Chaparro
              Participants of an Issue:
              Recent user:
              Jason Pince
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 weeks, 5 days ago

                Packages

                Version Package
                7.3.3 CE GA4
                Master