You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by at...@apache.org on 2010/04/08 00:48:10 UTC

svn commit: r931713 - /portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java

Author: ate
Date: Wed Apr  7 22:48:09 2010
New Revision: 931713

URL: http://svn.apache.org/viewvc?rev=931713&view=rev
Log:
Fix for PLUTO-568: Request attributes with javax not getting namespaced and hence colliding
I've solved this by now only excluding attributes starting with "javax.servlet." as those are really reserved for the underlying servlet container itself.
Namespacing other attribute names *should* not cause side-effects.
Note: this is only a change specific to Pluto Portal Driver, not the portlet container (which does not concern itself with this functionality). 

Modified:
    portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java

Modified: portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java?rev=931713&r1=931712&r2=931713&view=diff
==============================================================================
--- portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java (original)
+++ portals/pluto/trunk/pluto-portal-driver-impl/src/main/java/org/apache/pluto/driver/services/container/PortletRequestContextImpl.java Wed Apr  7 22:48:09 2010
@@ -68,7 +68,7 @@ public class PortletRequestContextImpl i
     
     protected boolean isReservedAttributeName(String name)
     {
-        return name.startsWith("java.") || name.startsWith("javax.");
+        return name.startsWith("javax.servlet.");
     }
     
     protected String encodeAttributeName(String name)