Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Server Application error during page redirection after successful login. #778

Closed
2 of 12 tasks
tristanperper opened this issue Feb 24, 2020 · 4 comments · Fixed by #878
Closed
2 of 12 tasks
Labels

Comments

@tristanperper
Copy link

tristanperper commented Feb 24, 2020

Bug Report

After a successful login (with MFA), Server Application error occured during page redirection.
Tried the solution (driver.WaitForPageToLoad) in relation to f27f662 but it doesn't work in my end.

Browser I used is Firefox 73.0.1 (64-bit).

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version

  • Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
  • Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
  • Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
  • Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online

UCI or Classic Web

  • UCI (XrmApp)
  • Classic Web (XrmBrowser)

Online or On Premise

  • Online
  • On Premise

Browser

  • Chrome
  • Firefox
  • IE
  • Edge

Describe the bug

After a successful login (with MFA), Server Application error occured during page redirection.
MFAError

Special formatting / display

Code to reproduce

Expected behavior

User should be redirected to the landing page after login (with MFA)

Screenshots

Additional context

As cited in f27f662 , root cause is in Webclient.cs -> Initialize mode

internal BrowserCommandResult<bool> InitializeModes()
        {
            return this.Execute(GetOptions("Initialize Unified Interface Modes"), driver =>
            {
                Thread.Sleep(10000);                --> This seems to work. Successful page redirection
                //driver.WaitForPageToLoad();  --> Not working on my end

                var uri = driver.Url;
                var queryParams = "&flags=easyreproautomation=true";

                if (Browser.Options.UCITestMode) queryParams += ",testmode=true";
                if (Browser.Options.UCIPerformanceMode) queryParams += "&perf=true";

                if (!uri.Contains(queryParams) && !uri.Contains(System.Web.HttpUtility.UrlEncode(queryParams)))
                {
                    var testModeUri = uri + queryParams;

                    driver.Navigate().GoToUrl(testModeUri);
                }

                WaitForMainPage();

                return true;
            });
@AngelRodriguez8008
Copy link
Contributor

Thanks @tristanperper,

like I write in comment in #777.

I have a different approach for some cases. I describe it in #774. I don't like to add extra time because the Tests are already taking too much. I have the idea of retry (if needed) or a global TimeFactor that can accelerate or slow the tests depending of the performance of the Client & the Environment.

What do you think?

br

@tristanperper
Copy link
Author

Thanks @tristanperper,

like I write in comment in #777.

I have a different approach for some cases. I describe it in #774. I don't like to add extra time because the Tests are already taking too much. I have the idea of retry (if needed) or a global TimeFactor that can accelerate or slow the tests depending of the performance of the Client & the Environment.

What do you think?

br

Hi @AngelRodriguez8008 ,

Your idea of retry, is this sort of a page retry? It it works, then let us look at that kind of implementation.

Regards,

Tristan Perper

@AngelRodriguez8008
Copy link
Contributor

Sorry @tristanperper,

I was testing something in Firefox now & I remember that in Firefox (Manual Testing) I wasn't able to login with the OTC, just via SMS. Now is working different I don't get the SMS, the OTC works. I don't know exactly what is happening with Firefox.

Are you able to login manually with this both MFA possibilities?

Thanks & br

@tristanperper
Copy link
Author

Sorry @tristanperper,

I was testing something in Firefox now & I remember that in Firefox (Manual Testing) I wasn't able to login with the OTC, just via SMS. Now is working different I don't get the SMS, the OTC works. I don't know exactly what is happening with Firefox.

Are you able to login manually with this both MFA possibilities?

Thanks & br

Hi @AngelRodriguez8008 ,

Yes I was able to login manually either SMS or OTC.

Regards,

Tristan Perper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants