Commit 3575e0ef authored by Maxime Besson's avatar Maxime Besson

Clear url pdata on CDA redirection

Fixes #1650
parent 73c8a1a8
Pipeline #4723 passed with stage
in 9 minutes and 50 seconds
......@@ -47,6 +47,10 @@ sub changeUrldc {
$self->p->updateSession( $req, $cdaInfos, $cdaSession->id );
# We are about to redirect the user to the CDA application,
# dismiss any previously stored redirections (#1650)
delete $req->{pdata}->{_url};
$req->{urldc} .=
( $urldc =~ /\?/ ? '&' : '?' )
. $self->{conf}->{cookieName} . "cda="
......
......@@ -51,6 +51,12 @@ count(1);
my ($query) =
expectRedirection( $res, qr#^http://test.example.org/\?(lemonldapcda=.*)$# );
# Bug #1650 made the portal store an _url in pdata at this step
my $cookies = getCookies($res);
ok( !defined( $cookies->{lemonldappdata} ), " Make sure no pdata is returned" );
count(1);
# Handler part
use_ok('Lemonldap::NG::Handler::Server');
use_ok('Lemonldap::NG::Common::PSGI::Cli::Lib');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment