Mike McNally | 2 Dec 18:08

Re: Preventing __fsk being added to redirects

If you don't want the request parameters forwarded, you can tell the
redirect resolution object not to include them. (In other words are
you sure that that parameter isn't the one that came in on your form?)

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Mike McNally | 2 Dec 18:11

Re: Preventing __fsk being added to redirects

Oh wait never mind I saw "fsk" but I was thinking of the other one
("fp"?).  The code seems to include that if there's a FlashScope
present on the request, regardless of whether request params are to be
included.

--

-- 
Turtle, turtle, on the ground,
Pink and shiny, turn around.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alan Burlison | 2 Dec 18:45
Favicon

Re: Preventing __fsk being added to redirects

Mike McNally wrote:

> Oh wait never mind I saw "fsk" but I was thinking of the other one
> ("fp"?).  The code seems to include that if there's a FlashScope
> present on the request, regardless of whether request params are to be
> included.

Yes, that's the problem.  I tried setting the flash scope to null on the 
RedirectResolution to stop it, but that just causes a NPE.

--

-- 
Alan Burlison
--

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alan Burlison | 3 Dec 11:05
Favicon

Re: Preventing __fsk being added to redirects

Alan Burlison wrote:

> Yes, that's the problem.  I tried setting the flash scope to null on the 
> RedirectResolution to stop it, but that just causes a NPE.

Found the cause: calling ctx.getMessages() or ctx.getValidationErrors() 
triggers the creation of the Flash Scope even if no messages or errors 
are subsequently added to them.  I was fetching these at the top of the 
action and assigning them to a variable, then using them in the message 
& error handling code later on in the method.

I think there's a possible RFE here:

Flash Scope should not be saved unless it is non-empty.

Thoughts?

--

-- 
Alan Burlison
--

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane