Author: cziegeler Date: Fri Oct 14 13:38:08 2011 New Revision: 1183355 URL: http://svn.apache.org/viewvc?rev=1183355&view=rev Log: Remove javax. attributes before calling portlet
Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/services/DefaultPortletInvokerService.java Modified: sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/services/DefaultPortletInvokerService.java URL: http://svn.apache.org/viewvc/sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/services/DefaultPortletInvokerService.java?rev=1183355&r1=1183354&r2=1183355&view=diff ============================================================================== --- sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/services/DefaultPortletInvokerService.java (original) +++ sling/whiteboard/portal/container/src/main/java/org/apache/sling/portal/container/internal/services/DefaultPortletInvokerService.java Fri Oct 14 13:38:08 2011 @@ -258,9 +258,12 @@ public class DefaultPortletInvokerServic final SlingPortletConfig portletConfig = info.getPortletConfig(); final SlingPortletContext portletContext = info.getPortletContext(); - // remove attributes we don't want to pass to the portlet + // remove attributes before we call the portlet request.removeAttribute(PortletInvokerService.METHOD_ID); request.removeAttribute(PortletInvokerService.FILTER_MANAGER); + request.removeAttribute(PortletInvokerService.PORTLET_CONFIG); + request.removeAttribute(PortletInvokerService.PORTLET_REQUEST); + request.removeAttribute(PortletInvokerService.PORTLET_RESPONSE); request.removeAttribute(ATTR_PORTLET); // initialize