You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Gilbert Hamann <GH...@descartes.com> on 2001/06/28 16:22:36 UTC

Bug 2362: Version 1.6: https and basic authentication do not work together

Mike,

I have successfully compiled and run with this patch. Basic authentication
works
the same under https, since SSL is a transparent layer as far as http is
concerned.

-gh

Gilbert Hamann
Architecture Verification
Descartes Systems Group
519-746-6114 ext. 2293

------- Additional Comments From Mike Stover <ma...@apache.org>
2001-06-28 05:18 -------
I've put in the suggested change.  However, I don't have an https server to 
test this on, and I just don't know if authorization works the same under
https 
as under http.  If the original bug submitter could test this and email the 
JMeter mailing list with the results, I'd appreciate it.

--- Original message from GHamann ----

If a ulr with https is entered, the basic authentication list is not
accessed. 
This is in org.apache.jmeter.protocol.http.control.AuthManager.

In getAuthHeaderForURL the code reads:
		if (!url.getProtocol().toUpperCase().equals("HTTP"))
		{
			return null;

		}

My suggested bug fix is:
		String crntProtocol = url.getProtocol().toUpperCase();
		
		if (!(crntProtocol.equals("HTTP") || crntProtocol.equals
("HTTPS")))
		{
			return null;
		}



Gilbert Hamann
Architecture Verification
Descartes Systems Group
519-746-6114 ext. 2293

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org