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

Export fails if portlet doesn't have a liferay-portlet.xml

    Details

      Description

       Steps to reproduce:

      1. Create a sample portlet without a liferay-portlet.xml (I have attached one with and without it)
      2. Start Liferay 6.2
      3. Deploy the portlet
      4. Place the portlet on the default welcome page
      5. Export the Site

      Expected Result: Successful export.
      Actual Result: Export fails with a NullPointerException (see full logs attached)

      If you deploy the portlet with a liferay-portlet.xml, export works. I believe having a liferay-portlet.xml is not mandatory for portlets, but I'm not entirely sure.

       I have attached a portlet to test this on master as well.

      reproduced on ee-6.2.x @ commit 073cbc3fcedab7dfa457e49ece4cef2a6b365ba9
      works correctly on master @ commit c84a25902b4edd39d537fd0e59cf83be3b029c02

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao
              Reporter:
              rimi.saadou Rimi Saadou (Inactive)
              Participants of an Issue:
              Recent user:
              Nicole Mak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 19 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE