WebPagetest Forums
HTTP authentication problem after agent upgrade 357 -> 359 - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: HTTP authentication problem after agent upgrade 357 -> 359 (/showthread.php?tid=12358)



HTTP authentication problem after agent upgrade 357 -> 359 - ash - 06-25-2013 07:11 PM

Hi,

After upgrading agents I have following problem with scripted test. First visited URL is measured correctly. After clicking url IE displays dialog box and requires entering credentials.

The script is simle like this:

combineSteps
navigate https://my.internal.domain/someURI/list.jsf
clickAndWait innerText = LinkText

What is interesting, when I log in to the agent workstation and while visiting application being tested I enter credentials with checked option "remember credentials" and in test I do not enter credentials, test is executed properly.


RE: HTTP authentication problem after agent upgrade 357 -> 359 - pmeenan - 06-28-2013 12:52 AM

Does the app require HTTP auth?

Sorry, I'm a bit confused about what is happening between manually testing and scripting. It sounds like when you manually test you get challenged for auth so I would expect the same to happen for the script (don't expect saved credentials to be used when running the script). Are you enabling HTTP auth in the UI as well as the script? What version of the server sofware are you running (1.2)?

If I remember correctly, we made auth support work across all of the browsers by basically transforming the auth information into an AddHeader command that just adds the auth header. For it to work correctly you'd need the php-side of the code that updated at the same time as the agent.


RE: HTTP authentication problem after agent upgrade 357 -> 359 - ash - 06-28-2013 11:20 PM

Hi. Sorry for not being clear. I forgot to explain this. Yes - the application requires http authentication.

When I test with WPT test fails because despite entering credentials in the definition of the test, dialog box is displayed and closed. After that WPT agent gets 403 response from the server.

After I open the application on agent machine and enter credentials to the web browsers dialog box manually and check option "remember credentials" I can test the application with WPT without any problems (credentials are already in displayed dialog box).

Because of errors and how my script is written I got no results registered.

It happens only after the upgrade. Usually I upgrade WPT to HEAD version and to the latest agent available.

Regards


RE: HTTP authentication problem after agent upgrade 357 -> 359 - pmeenan - 07-02-2013 10:59 AM

Opened an issue to track it so I don't forget: https://github.com/WPO-Foundation/webpagetest/issues/7