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

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

    Details

      Description

      Reproduction steps

      1. Create a fragments zip with the Fragment Toolkit with " {"companyWebId":"*"}
        " in the liferay-deploy-fragments.json file or use the liferay-fragments.zip
      1. Copy the zip file to Liferay's deploy folder

      Expected behaviour: No errors, the fragments are imported into the Global site successfully
      Actual behaviour: The fragments are not imported and the console shows errors:

      ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][FragmentAutoDeployListener:88]
      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:360) ~[portal-impl.jar:?]
          at com.liferay.portal.repository.RepositoryProviderImpl.getLocalRepository(RepositoryProviderImpl.java:270) ~[portal-impl.jar:?]
          at com.liferay.document.library.repository.portlet.file.repository.internal.PortletFileRepositoryImpl.getPortletFileEntries(PortletFileRepositoryImpl.java:442) ~[?:?]
          at com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil.getPortletFileEntries(PortletFileRepositoryUtil.java:184) ~[portal-kernel.jar:?]
          at com.liferay.fragment.internal.importer.FragmentsImporterImpl._importResources(FragmentsImporterImpl.java:833) ~[?:?]
          at com.liferay.fragment.internal.importer.FragmentsImporterImpl.importFragmentEntries(FragmentsImporterImpl.java:133) ~[?:?]
          at com.liferay.fragment.internal.deploy.auto.FragmentAutoDeployListener._deploy(FragmentAutoDeployListener.java:193) ~[bundleFile:?]
          at com.liferay.fragment.internal.deploy.auto.FragmentAutoDeployListener.deploy(FragmentAutoDeployListener.java:80) [bundleFile:?]
          at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:57) [portal-kernel.jar:?]
          at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:245) [portal-kernel.jar:?]
          at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:305) [portal-kernel.jar:?]
          at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:67) [portal-kernel.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-echo Product Team Echo
              Reporter:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Engineering Assignee:
              Balázs Sáfrány-Kovalik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                25 weeks, 3 days ago

                  Packages

                  Version Package
                  7.4.3.14 CE GA14
                  Master