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

Undo the delete attachment operation from "history" of wiki leads to exception in terminal

    Details

      Description

      Steps to reproduce:

      1. Start portal and login.
      2. "Admin" > "Content" > "Wiki" > press the "Main" link.
      3. Press "Front Page" > "Details" > "Attachments", upload any file and save it.
      4. Press "History", find the file which just uploaded, press the "remove" link (remove.png).
      5. Press the "Undo" button (undo.png).

      Expected result:
      Deleted file can be restored without any issue.

      Actual result:
      Error message displayed on screen and terminal.

      09:58:18,755 ERROR [http-bio-8080-exec-4][render_portlet_jsp:132] null
      com.liferay.portlet.wiki.NoSuchPageResourceException: No WikiPageResource exists with the primary key 10479
      	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.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.getPage(WikiPageLocalServiceImpl.java:948)
      	at com.liferay.portlet.wiki.service.impl.WikiPageLocalServiceImpl.getPage(WikiPageLocalServiceImpl.java:940)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.liferay.portlet.wiki.service.impl.WikiPageServiceImpl.restorePageFromTrash(WikiPageServiceImpl.java:625)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      

        Attachments

        1. error message.png
          error message.png
          10 kB
        2. liferay.2013-12-27.log
          8 kB
        3. remove.png
          remove.png
          35 kB
        4. undo.png
          undo.png
          53 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              hong.zhao Hong Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 14 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1