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

Invalid redirect in notification after deleting or restoring a web content

    Details

      Description

      Reproducing steps

      1. Create a web content with the user test and subscribe to it
      2. Create a new user (user01) and give the role admin
      3. With user01 move the web content to the recycle bin
      4. The user test will have a new notification
      5. Click on the notification link
        Expected: Clicking doesn't produce any errors.
        Observed: Clicking produces an error javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect (See full stack trace below).
        2018-09-12 09:26:59.221 ERROR [http-nio-8080-exec-1][PortletServlet:112] javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect
        javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.processAction(NotificationsPortlet.java:236)
        	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
        	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
        	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	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:118)
        	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
        	at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:584)
        	at com.liferay.portlet.internal.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:630)
        	at com.liferay.portlet.internal.InvokerPortletImpl.processAction(InvokerPortletImpl.java:319)
        	at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.processAction(MonitoringInvokerPortlet.java:208)
        	at com.liferay.portlet.internal.PortletContainerImpl._processAction(PortletContainerImpl.java:487)
        	at com.liferay.portlet.internal.PortletContainerImpl.lambda$processAction$0(PortletContainerImpl.java:145)
        	at com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:392)
        	at com.liferay.portlet.internal.PortletContainerImpl.processAction(PortletContainerImpl.java:138)
        	at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:95)
        	at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:78)
        	at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:111)
        	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:345)
        	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:173)
        	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
        	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:172)
        	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
        	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:594)
        	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:571)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:103)
        	at com.liferay.portal.apio.internal.architect.servlet.filter.APIDocumentationFilter.processFilter(APIDocumentationFilter.java:74)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:100)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
        	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
        	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
        	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
        	at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:359)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:103)
        	at com.liferay.portal.apio.internal.architect.servlet.filter.APIDocumentationFilter.processFilter(APIDocumentationFilter.java:74)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:339)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:357)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:83)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:261)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
        	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
        	at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:100)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:764)
        	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1388)
        	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        	at java.lang.Thread.run(Thread.java:748)
        Caused by: java.lang.IllegalArgumentException: localhost is not a valid redirect
        	at com.liferay.portlet.internal.ActionResponseImpl.sendRedirect(ActionResponseImpl.java:47)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet._sendRedirect(NotificationsPortlet.java:347)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.markNotificationAsRead(NotificationsPortlet.java:148)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.processAction(NotificationsPortlet.java:217)
        	... 153 more
        
      6. With user user01 restore the web content from the recycle bin.
      7. The user test will have a new notification
      8. Click on the notification link
        Expected: Clicking doesn't produce any errors.
        Observed: Clicking produces an error javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect (See full stack trace below).
        2018-09-12 09:29:13.963 ERROR [http-nio-8080-exec-4][PortletServlet:112] javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect
        javax.portlet.PortletException: java.lang.IllegalArgumentException: localhost is not a valid redirect
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.processAction(NotificationsPortlet.java:236)
        	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:77)
        	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:50)
        	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:108)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	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:118)
        	at org.eclipse.equinox.http.servlet.internal.servlet.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:48)
        	at com.liferay.portlet.internal.InvokerPortletImpl.invoke(InvokerPortletImpl.java:584)
        	at com.liferay.portlet.internal.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:630)
        	at com.liferay.portlet.internal.InvokerPortletImpl.processAction(InvokerPortletImpl.java:319)
        	at com.liferay.portal.monitoring.internal.portlet.MonitoringInvokerPortlet.processAction(MonitoringInvokerPortlet.java:208)
        	at com.liferay.portlet.internal.PortletContainerImpl._processAction(PortletContainerImpl.java:487)
        	at com.liferay.portlet.internal.PortletContainerImpl.lambda$processAction$0(PortletContainerImpl.java:145)
        	at com.liferay.portlet.internal.PortletContainerImpl._preserveGroupIds(PortletContainerImpl.java:392)
        	at com.liferay.portlet.internal.PortletContainerImpl.processAction(PortletContainerImpl.java:138)
        	at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:95)
        	at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:78)
        	at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:111)
        	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:345)
        	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:173)
        	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
        	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
        	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:172)
        	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
        	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
        	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:594)
        	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:571)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:103)
        	at com.liferay.portal.apio.internal.architect.servlet.filter.APIDocumentationFilter.processFilter(APIDocumentationFilter.java:74)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:100)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
        	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)
        	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
        	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
        	at com.liferay.friendly.url.internal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:359)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:98)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:103)
        	at com.liferay.portal.apio.internal.architect.servlet.filter.APIDocumentationFilter.processFilter(APIDocumentationFilter.java:74)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:339)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:357)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.secure.BaseAuthFilter.processFilter(BaseAuthFilter.java:340)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:83)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:261)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:88)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:263)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
        	at com.liferay.portal.monitoring.internal.servlet.filter.MonitoringFilter.processFilter(MonitoringFilter.java:181)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
        	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
        	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
        	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
        	at com.liferay.portal.servlet.filters.urlrewrite.UrlRewriteFilter.processFilter(UrlRewriteFilter.java:65)
        	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:49)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:207)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:112)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:168)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:188)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:96)
        	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:100)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
        	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
        	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
        	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:764)
        	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1388)
        	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        	at java.lang.Thread.run(Thread.java:748)
        Caused by: java.lang.IllegalArgumentException: localhost is not a valid redirect
        	at com.liferay.portlet.internal.ActionResponseImpl.sendRedirect(ActionResponseImpl.java:47)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet._sendRedirect(NotificationsPortlet.java:347)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.markNotificationAsRead(NotificationsPortlet.java:148)
        	at com.liferay.notifications.web.internal.portlet.NotificationsPortlet.processAction(NotificationsPortlet.java:217)
        	... 153 more
        

      Note

      1. The payload field entityURL in the userNotificationEven is empty.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abel.yu Abel Yu (Inactive)
                Reporter:
                ricardo.couso Ricardo Couso
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  35 weeks, 5 days ago