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

The code view of deployed system scoped fragment is unavailable

    Details

      Description

      Step to reproduce:

      1. Start a Portal
      2. Copy the attached zip file to deploy directory
      3. Site admin > Site Builder > Page Fragments > Imported > Image
      4. Click the card title with link

      Expected Results:
      The codes of Image fragments should be shown in screen.

      Actual Results:
      The code view is unavailable.

      And the following error is thrown in console.

      2020-03-02 08:26:58.142 ERROR [http-nio-8080-exec-2][PortletRequestDispatcherImpl:304] Unable to dispatch request: java.lang.RuntimeException: com.liferay.portal.kernel.repository.InvalidRepositoryIdException: No Repository exists with the primary key 0
      2020-03-02 08:26:58.144 ERROR [http-nio-8080-exec-2][PortletServlet:119] javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.RuntimeException: com.liferay.portal.kernel.repository.InvalidRepositoryIdException: No Repository exists with the primary key 0
      javax.portlet.PortletException: org.apache.jasper.JasperException: java.lang.RuntimeException: com.liferay.portal.kernel.repository.InvalidRepositoryIdException: No Repository exists with the primary key 0
              at com.liferay.portlet.internal.PortletRequestDispatcherImpl.dispatch(PortletRequestDispatcherImpl.java:307)
              at com.liferay.portlet.internal.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:123)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:572)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.include(MVCPortlet.java:588)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.doDispatch(MVCPortlet.java:462)
              at com.liferay.fragment.web.internal.portlet.FragmentPortlet.doDispatch(FragmentPortlet.java:144)
              at javax.portlet.GenericPortlet.render(GenericPortlet.java:291)
              at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.render(MVCPortlet.java:304)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:127)
              at com.liferay.portlet.ScriptDataPortletFilter.doFilter(ScriptDataPortletFilter.java:58)
              at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:124)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:71)
              at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:115)
              at javax.servlet.http.HttpServ
      

      Reproduced on:
      Tomcat 9.0.17 + MySQL 5.7. Portal master GIT ID: a25e181e505c68f820eb6637370f213798a754f3.

        Attachments

        1. image.zip
          35 kB
        2. Unavailable.png
          Unavailable.png
          32 kB

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            yang.cao Yang Cao
            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:
              1 year, 28 weeks, 4 days ago

                Packages

                Version Package
                7.3.1 CE GA2
                7.3.2 CE GA3
                7.3.10 DXP GA1
                Master