[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]