Hi,
+-From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> --
|_Date: Mon, 15 Aug 2005 11:53:12 -0700 _________________________
|
|Try the same tests with jsch 0.1.16. What are the results? I
|believe these are problems with Jsch. -Rob Anderson
...
|> BUILD FAILED
|> P:\com_lgc\cycle11\infrasdk\build.xml:22:
|> com.jcraft.jsch.JSchException:
|> Auth cancel
...
I think this problem has come from following lines in
org/apache/tools/ant/taskdefs/optional/ssh/SSHUserInfo.java
>public boolean promptPassword(String passwordPrompt) {
> //log(passwordPrompt, Project.MSG_DEBUG);
> if (firstTime) {
> firstTime = false;
> return true;
> }
> return firstTime;
>}
I mean that this method will always return 'false' in the second time.
Here is a quick hack to work around this problem.
May I ask somebody to test this patch?
diff -Naur ssh/SSHUserInfo.java ssh.new/SSHUserInfo.java
--- ssh/SSHUserInfo.java 2005-07-08 13:39:23.000000000 +0000
+++ ssh.new/SSHUserInfo.java 2005-08-16 04:10:40.000000000 +0000
@@ -112,6 +112,7 @@
* @param password The password to set
*/
public void setPassword(String password) {
+ firstTime = true;
this.password = password;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]