Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
3.0.0
-
None
-
None
Description
The <portlet:defineObjects/> is a feature that enables the JSP pageContext to have attributes like portletConfig. One benefit of this feature is that JSP EL expressions can resolve these objects. For example:
<p>portletConfig=${portletConfig}</p>
If <portlet:defineObjects/> is missing from a JSP, then the objects should not appear as JSP pageContext attributes, and EL resolution should return null.
Pluto 3.0 contains a regression such that, even if <portlet:defineObjects/> is missing, EL resolution is returning a non-null value.
Steps to Reproduce:
- Deploy org.apache.portals.pluto.650.portlet.war (attached to this issue)
- Add the portlet to a Pluto portal page
- View the Pluto portal page
Expected Result:
portletConfig= renderRequest= renderResponse= portletSession= portletSessionScope= portletPreferences= portletPreferencesValues= portletRequest= portletResponse= renderParams= portletContext= portletMode= windowState= cookies= locale= locales= namespace= contextPath= windowId= portletName=
Actual Result:
portletConfig=org.apache.pluto.driver.container.DriverPortletConfigImpl@8ff7529 renderRequest=org.apache.pluto.container.impl.RenderRequestImpl@f47cc70 renderResponse=org.apache.pluto.container.impl.RenderResponseImpl@32bed4e6 portletSession=org.apache.pluto.driver.services.container.CachedPortletSessionImpl@e8b6211 portletSessionScope={} portletPreferences=org.apache.pluto.container.impl.PortletPreferencesImpl[] portletPreferencesValues={} portletRequest=org.apache.pluto.container.impl.RenderRequestImpl@f47cc70 portletResponse=org.apache.pluto.container.impl.RenderResponseImpl@32bed4e6 renderParams=org.apache.pluto.container.impl.RenderParametersImpl@60d3518c portletContext=org.apache.pluto.driver.container.DriverPortletContextImpl@4e46cf03 portletMode=view windowState=normal cookies=[Ljavax.servlet.http.Cookie;@518eeffd locale=en_US locales=[Ljava.util.Locale;@7f2df4df namespace=Pluto_org_apache_portals_pluto_650_portlet_1_1349732888_0_ contextPath=/org.apache.portals.pluto.650.portlet windowId=org.apache.portals.pluto.650.portlet.1!1349732888|0 portletName=1