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 "David Hay (JIRA)" <ji...@apache.org> on 2006/10/20 17:58:36 UTC

[jira] Commented: (PLUTO-261) PortalServletRequest makes a redundant check

    [ http://issues.apache.org/jira/browse/PLUTO-261?page=comments#action_12443874 ] 
            
David Hay commented on PLUTO-261:
---------------------------------

Acutally, the if condition should be reversed in case the actionWindow is null

id.equals(url.getActionWindow())

> PortalServletRequest makes a redundant check
> --------------------------------------------
>
>                 Key: PLUTO-261
>                 URL: http://issues.apache.org/jira/browse/PLUTO-261
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.0-beta2
>            Reporter: David Hay
>
> On lines 95-96 of PortalServletRequest, the following code exists:
>         String id = portletWindow.getId().getStringId();
>         if (portletWindow.getId().getStringId().equals(id)) {
> This will always evaluate to true.  What I suspect was intended here was the following:
>         String id = portletWindow.getId().getStringId();
>         if (url.getActionWindow().equals(id)) {
> So that the query parameters were only included in the request for the portlet processing an action.
> BTW, 1.1.0-beta2 is still listed as unreleased in JIRA

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira