Invalid use of credentials type
Brought to you by:
fikin
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() );
}
}