Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X, 7.1.X, Master
-
7.1.x, 7.0.x
-
Committed
-
2
Description
When a notification for content pending review in workflow is no longer applicable because the content was deleted, deleting the notification results in an error. The notification appears to still be deleted successfully, however.
Steps to reproduce:
- In Web Content admin, create a new Folder
- Edit the folder, and under "Structure Restrictions and Workflow," select Single Approver as the default workflow for the folder
- Create a piece of Web Content within the folder, and submit it for publication
- Remove the Web Content to the Recycle Bin (and, optionally, delete it from the Recycle Bin)
- Go to the user Notifications, and find the notification for the Web Content that was just deleted
- The notification should say "Notification no longer applies. Notification for My Workflow Tasks was deleted."
- Attempt to delete this notification
Expected result: the notification is deleted with no errors
Actual result: the error "Portlet is temporarily unavailable" is shown, and a stack trace (as shown below) appears in the console. The notification is still deleted.
Reproduced in master: df3b7e0375a445e115e1ebf82aa21d1ae2ec96f2
Reproduced in 7.0.x: 49a45728fdbbeeab93f9843e294780a28af2074d
00:37:50,226 ERROR [http-nio-8080-exec-2][render_portlet_jsp:131] null com.liferay.portal.kernel.exception.NoSuchUserNotificationEventException: No UserNotificationEvent exists with the primary key 31826 at com.liferay.portal.service.persistence.impl.UserNotificationEventPersistenceImpl.remove(UserNotificationEventPersistenceImpl.java:8458) at com.liferay.portal.service.persistence.impl.UserNotificationEventPersistenceImpl.remove(UserNotificationEventPersistenceImpl.java:8432) at com.liferay.portal.service.base.UserNotificationEventLocalServiceBaseImpl.deleteUserNotificationEvent(UserNotificationEventLocalServiceBaseImpl.java:112) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:163) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:137) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:169) at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.deleteUserNotificationEvent(NotificationsPortlet.java:98) at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.processAction(NotificationsPortlet.java:206) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153) at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62) at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:117) at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
Attachments
Issue Links
- Discovered while testing
-
LPS-75533 "View in Context" button cannot show published version of content in context
- Closed