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

Can not create a display page template has the same name with already removed one

    Details

      Description

      Step to reproduce:

      1. Add a display page template with Web Content Article type and Basic Web Content subtype named Test Display Page Template
      2. Add a Display Page Content fragment to display page template
      3. Add a WC select display page template as Specific Display Page Template
      4. Publish
      5. Export Web Content lar
      6. Add a new site
      7. Import Web Content lar
      8. Delete Web Content Article
      9. Navigate to display page template
      10. Delete the display page template
      11. Add a new display page template with Web Content Article type and Basic Web Content subtype also named Test Display Page Template

      Expected Results:
      The creation should succeed.

      Actual Results:
      The creation failed. And the following error is thrown in log console:

      2020-05-19 02:28:17.859 ERROR [http-nio-8080-exec-1][PortletServlet:119] javax.portlet.PortletException: com.liferay.portal.kernel.exception.ModelListenerException: com.liferay.friendly.url.exception.DuplicateFriendlyURLEntryException: {mvccVersion=0, ctCollectionId=0, friendlyURLEntryLocalizationId=28, companyId=20098, friendlyURLEntryId=36352, languageId=en_US, urlTitle=/web-content-article, groupId=36289, classNameId=35918, classPK=31}
      javax.portlet.PortletException: com.liferay.portal.kernel.exception.ModelListenerException: com.liferay.friendly.url.exception.DuplicateFriendlyURLEntryException: {mvccVersion=0, ctCollectionId=0, friendlyURLEntryLocalizationId=28, companyId=20098, friendlyURLEntryId=36352, languageId=en_US, urlTitle=/web-content-article, groupId=36289, classNameId=35918, classPK=31}
              at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCActionCommand.processAction(BaseMVCActionCommand.java:69)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callActionMethod(MVCPortlet.java:358)
              at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:88)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:248)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: 63f0505472fa68f3206a1615ef01624a7571a23f.

      Cannot be reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal 7.3.1-GA2 GIT ID: 4ffdd7225ef4a5fd922703263a3006a741a4d8d0.

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            Participants of an Issue:
            Recent user:
            Jason Pince
            Engineering Assignee:
            Pavel Savinov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.3.3 CE GA4
                7.3.10 DXP GA1
                Master