You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/04/25 20:56:46 UTC

[jira] Closed: (STR-285) Erroneous shortcircuit in org.apache.struts.util.RequestUtils.computeParameters

     [ http://issues.apache.org/struts/browse/STR-285?page=all ]
     
Don Brown closed STR-285:
-------------------------

    Resolution: Fixed

> Erroneous shortcircuit in org.apache.struts.util.RequestUtils.computeParameters
> -------------------------------------------------------------------------------
>
>          Key: STR-285
>          URL: http://issues.apache.org/struts/browse/STR-285
>      Project: Struts Action 1
>         Type: Bug

>   Components: Action
>     Versions: 1.0 Final
>  Environment: Operating System: All
> Platform: All
>     Reporter: Oliver Willenbrock
>     Assignee: Craig McClanahan
>      Fix For: 1.0.2

>
> The shortcircuit at the begin of the method 
> org.apache.struts.util.RequestUtils.computeParameters is erroneous. if u just 
> want to have a link with a transaction token but no parameters it won't work:
> <html:link href="foo" transaction="true">bar</html:link> 
> doesn't generate a link with a transaction token.
> Changing the if-statement to 
>         if ((paramId == null) && (name == null) && !transaction)
>             return (null);
> fixes the problem (i added just the && !transaction in the statement).

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org