-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File is getting corrupted when Chunk Mode file transfer interrupted #315
base: master
Are you sure you want to change the base?
Changes from all commits
7c13d8e
f55eaae
9aee720
8d05634
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,8 @@ public boolean start(Session session) throws Exception { | |
byte[][] response = null; | ||
|
||
if (password != null && prompt.length == 1 && !echo[0] | ||
&& prompt[0].toLowerCase().indexOf("password:") >= 0) { | ||
&& (prompt[0].toLowerCase().indexOf("password:") >= 0 | ||
|| prompt[0].toLowerCase().indexOf("password") >= 0)){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In #302 you mention that this change is needed in order to support a server that has a prompt of
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not able to reproduce this issue in my test system so cannot test it. We can leave the changes done in UserAuthKeyboardInteractive.java for now. Please let me know if I need to revert the changes and commit again. Thanks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you are not able to reproduce the issue that you believed was fixed by this change, then it should be removed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The or also overlaps, you could just remove the colon.. |
||
response = new byte[1][]; | ||
response[0] = password; | ||
password = null; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e
isn't already an instance ofSftpException
first, and if it is, just rethrow it directly.SftpException
.