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

No WikiPageResource exists with the primary key 0 when trying to embed an image in a Wiki

    Details

      Description

      Repetition steps:
      1) Get 6.2 vanilla and patch it with SP15
      2) Start Liferay and login as OmniAdmin
      3) Navigate to the Wiki administration in the Admin > Site Administration > Content section
      4) Select the "Main" Wiki and click on "Add Page". Add a title and a content, publish
      5) Edit the Wiki page just published, click the image icon to embed an image
      6) Click on "Browse Server"

      Expected: The Attachments pane to be shown.

      Actual result: The file browser will open and show the following error message "The server didn't reply with a proper XML data. Please check your configuration."

      Server will throw:

       
      ERROR [http-bio-8080-exec-5][ConnectorAction:79] com.liferay.portal.editor.fckeditor.exception.FCKException: com.liferay.portlet.wiki.NoSuchPageResourceException: No WikiPageResource exists with the primary key 0
      com.liferay.portal.editor.fckeditor.exception.FCKException: com.liferay.portlet.wiki.NoSuchPageResourceException: No WikiPageResource exists with the primary key 0
      	at com.liferay.portal.editor.fckeditor.receiver.impl.AttachmentCommandReceiver.getFoldersAndFiles(AttachmentCommandReceiver.java:98)
      	at com.liferay.portal.editor.fckeditor.receiver.impl.BaseCommandReceiver.getFoldersAndFiles(BaseCommandReceiver.java:291)
      	at com.liferay.portal.editor.fckeditor.command.impl.GetFoldersAndFilesCommand.execute(GetFoldersAndFilesCommand.java:39)
      	at com.liferay.portal.editor.fckeditor.ConnectorAction.execute(ConnectorAction.java:76)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:168)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      ...
      Caused by: com.liferay.portlet.wiki.NoSuchPageResourceException: No WikiPageResource exists with the primary key 0
      	at com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistenceImpl.findByPrimaryKey(WikiPageResourcePersistenceImpl.java:1248)
      	at com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistenceImpl.findByPrimaryKey(WikiPageResourcePersistenceImpl.java:1266)
      	at com.liferay.portlet.wiki.service.impl.WikiPageResourceLocalServiceImpl.getPageResource(WikiPageResourceLocalServiceImpl.java:71)
      ...
      	at com.liferay.portlet.wiki.service.WikiPageLocalServiceUtil.getPage(WikiPageLocalServiceUtil.java:611)
      	at com.liferay.portal.editor.fckeditor.receiver.impl.AttachmentCommandReceiver._getFiles(AttachmentCommandReceiver.java:120)
      	at com.liferay.portal.editor.fckeditor.receiver.impl.AttachmentCommandReceiver.getFoldersAndFiles(AttachmentCommandReceiver.java:95)
      	... 90 more
      

        Attachments

        1. 68219_2.png
          68219_2.png
          80 kB
        2. 68219.png
          68219.png
          166 kB

          Issue Links

            Activity

              People

              Assignee:
              sylvia.luan Sylvia Luan
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Michael Saechang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 9 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE