Unexpected "object moved to here" header injected into page

In 12.1 sometimes we are seeing a strange header injected into the page

<html>
<head>
<title>Object moved</title>
</head>
<body>
<h2>Object moved to <a href="/user/onboarding?ReturnUrl=%2Ff%2Fdiscussions%2F29185%2Ftest-shadow">here</a>.</h2>


Has anyone else seen this or have ideas what is injecting it into the page


Parents Reply
  • Hi Ben, Ive sent you a mail

    It's to do with response.redirect() and response.end() no longer terminating processing so unexpected things can happen

    e.g. 

    in vps saml handler if auth is all ok it should redirect to the oauth endpoint, which all looks to be ok code wise 

    //redirect to the oauth endpoint
    var url = oAuthUrl.Uri.AbsoluteUri;
    context.Response.Redirect(oAuthUrl.Uri.AbsoluteUri);
    context.ApplicationInstance.CompleteRequest();
    context.Response.End();

    but the flow no longer ends with the response.end() and continues into a catch all exception even for valid responses

Children
No Data