You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by jh...@yahoo.fr on 2005/07/05 17:35:41 UTC

Bug in JSSESocketFactory : missing "!"

Hi,

I think that there is a bug in the class JSSESocketFactory at line 168 :

if (StringUtils.startsWithIgnoreWhitespaces("HTTP/1.0 200", replyStr) &&
      StringUtils.startsWithIgnoreWhitespaces("HTTP/1.1 200", replyStr)) {

In the previous code "!" are missing, so that the error message is wrong
when the proxy return an error code.

The correct code should be :

if (!StringUtils.startsWithIgnoreWhitespaces("HTTP/1.0 200", replyStr) &&
      !StringUtils.startsWithIgnoreWhitespaces("HTTP/1.1 200", replyStr)) {

Thanks for applying a correction if it is ok !

Patrick



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com