You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "Eric Dalquist (JIRA)" <pl...@jakarta.apache.org> on 2004/11/09 21:03:23 UTC

[jira] Created: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

PortletRequestImpl assumes request attributes are namespaced
------------------------------------------------------------

         Key: PLUTO-83
         URL: http://nagoya.apache.org/jira/browse/PLUTO-83
     Project: Pluto
        Type: Bug
  Components: portlet container  
    Versions: Current CVS    
    Reporter: Eric Dalquist
    Priority: Critical


In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.

A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.

Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

Posted by "Michael Blum (JIRA)" <pl...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/PLUTO-83?page=history ]
     
Michael Blum resolved PLUTO-83:
-------------------------------

     Resolution: Fixed
    Fix Version: unspecified

The restriction by "isNameReserved" was removed with revision 76242.

> PortletRequestImpl assumes request attributes are namespaced
> ------------------------------------------------------------
>
>          Key: PLUTO-83
>          URL: http://nagoya.apache.org/jira/browse/PLUTO-83
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>     Reporter: Eric Dalquist
>     Assignee: Michael Blum
>     Priority: Critical
>      Fix For: unspecified

>
> In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.
> A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.
> Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

Posted by "Michael Blum (JIRA)" <pl...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/PLUTO-83?page=history ]
     
Michael Blum closed PLUTO-83:
-----------------------------


> PortletRequestImpl assumes request attributes are namespaced
> ------------------------------------------------------------
>
>          Key: PLUTO-83
>          URL: http://nagoya.apache.org/jira/browse/PLUTO-83
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>     Reporter: Eric Dalquist
>     Assignee: Michael Blum
>     Priority: Critical
>      Fix For: unspecified

>
> In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.
> A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.
> Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

Posted by "Michael Blum (JIRA)" <pl...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/PLUTO-83?page=history ]

Michael Blum reassigned PLUTO-83:
---------------------------------

    Assign To: Michael Blum

> PortletRequestImpl assumes request attributes are namespaced
> ------------------------------------------------------------
>
>          Key: PLUTO-83
>          URL: http://nagoya.apache.org/jira/browse/PLUTO-83
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>     Reporter: Eric Dalquist
>     Assignee: Michael Blum
>     Priority: Critical

>
> In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.
> A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.
> Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

Posted by "Ate Douma (JIRA)" <pl...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/PLUTO-83?page=comments#action_55600 ]
     
Ate Douma commented on PLUTO-83:
--------------------------------

I've been hit by this same problem for Jetspeed 2 while trying to communicate control information from the portal (Jetspeed 2) to our own admin portlets. This is a real *blocking* issue!

After reading the portlet specification once again on this I couldn't find any requirement for this restriction.
The only thing specified in the spec is that attribute names beginning with "javax.portlet." are reserved.
Additionally, the api javadocs expands this to all names beginning with "java." or "javax.".

As far as I can see, the current restriction is really not needed.
If this can be confirmed I'd really like it to be removed ASAP.

Could anyone from the pluto dev team comment on this issue and give an indication if and when it will be fixed?


> PortletRequestImpl assumes request attributes are namespaced
> ------------------------------------------------------------
>
>          Key: PLUTO-83
>          URL: http://nagoya.apache.org/jira/browse/PLUTO-83
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>     Reporter: Eric Dalquist
>     Priority: Critical

>
> In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.
> A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.
> Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (PLUTO-83) PortletRequestImpl assumes request attributes are namespaced

Posted by "blumm (JIRA)" <pl...@jakarta.apache.org>.
     [ http://nagoya.apache.org/jira/browse/PLUTO-83?page=comments#action_55610 ]
     
blumm commented on PLUTO-83:
----------------------------

I agree with Ate on his reading of the specification too. I think the restriction can be removed and I will do the fix by tommorow.

> PortletRequestImpl assumes request attributes are namespaced
> ------------------------------------------------------------
>
>          Key: PLUTO-83
>          URL: http://nagoya.apache.org/jira/browse/PLUTO-83
>      Project: Pluto
>         Type: Bug
>   Components: portlet container
>     Versions: Current CVS
>     Reporter: Eric Dalquist
>     Priority: Critical

>
> In version 1.6 of PortletRequestImpl.java the getAttribute method was changed to only look for namespaced versions of request attributes that do not start with java. or javax.
> A portal using pluto passes in a HttpServletRequest which it can specify attributes on to provide vendor specific features and functionality to a portlet. Since the attributes are being set on a standard HttpServletRequest no namespacing of the names is done but when the portlet tries to get the attribute the requested name is namespaced and cannot be found.
> Either a way to add pluto namespaced attributes to a HttpServletRequest needs to be created or PortletRequestImpl needs to allow access to non-namespaced request attributes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira