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

Can't deploy a zip file of fragments that are available system wide

    Details

      Description

      Steps to Reproduce:

      1. Add a new site to liferay portal
      2. Create a ZIP file with different fragment files(and their configurations,html, etc.)
      3. Include a deployment descriptor file in JSON format called liferay-deploy-fragments.json
      4. Add
        {
        	"companyWebId": "*"
        }

        to the file(or just leave the file blank)

      5. Copy the ZIP file to the deploy folder

      Expected Result:
      The fragments have been deployed and all the fragments are automatically created

      Actual Result:
      The fragments haven't been deployed(although the collection name was) and there is an error in the console log:

      2019-12-27 00:41:52.343 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:263] Processing fragments.zip
      2019-12-27 00:41:52.480 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][FragmentAutoDeployListener:87] com.liferay.portal.kernel.repository.InvalidRepositoryIdException: No Repository exists with the primary key 0
      com.liferay.portal.kernel.repository.InvalidRepositoryIdException: No Repository exists with the primary key 0
      	at com.liferay.portal.repository.RepositoryProviderImpl.checkRepository(RepositoryProviderImpl.java:379)
      	at com.liferay.portal.repository.RepositoryProviderImpl.getLocalRepository(RepositoryProviderImpl.java:290)
      	at com.liferay.document.library.repository.portlet.file.repository.internal.PortletFileRepositoryImpl.getPortletFileEntry(PortletFileRepositoryImpl.java:537)
      	at com.liferay.document.library.repository.portlet.file.repository.internal.PortletFileRepositoryImpl.fetchPortletFileEntry(PortletFileRepositoryImpl.java:395)
      	at com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil.fetchPortletFileEntry(PortletFileRepositoryUtil.java:154)
      	at com.liferay.fragment.internal.importer.FragmentsImporterImpl._importResources(FragmentsImporterImpl.java:637)
      	at com.liferay.fragment.internal.importer.FragmentsImporterImpl.importFile(FragmentsImporterImpl.java:127)
      	at com.liferay.fragment.internal.deploy.auto.FragmentAutoDeployListener._deploy(FragmentAutoDeployListener.java:194)
      	at com.liferay.fragment.internal.deploy.auto.FragmentAutoDeployListener.deploy(FragmentAutoDeployListener.java:79)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:61)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:270)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:330)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:61)
      

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7 Portal Master GIT ID: df3fe0e6bca1341a8d1333f9f8d423a512fa49d3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yang.cao Yang Cao
                Reporter:
                brooke.dalton Brooke Dalton
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 weeks, 2 days ago

                  Packages

                  Version Package
                  7.3.0 CE GA1
                  Master