Menu

#5 Invalid use of credentials type

open
nobody
None
5
2008-10-06
2008-10-06
No

Hi,

Element 'type' of credentials for HttpClient tasks is misused : a NTCredential is used when you specify a type <> 'nt' whereas it should be inverted.

See AntCredentials.java, 163-169 :

public Credentials getCredentials() {
if ( "nt".equalsIgnoreCase( getType() ) ) {
return new UsernamePasswordCredentials( getUsername(), getPassword() );
} else {
return new NTCredentials( getUsername(), getPassword(), getHost(), getDomain() );
}
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB