Skip to content
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

Endless 'while' loop when making a non existing directory. #442

Closed
alekseifedorov opened this issue Aug 2, 2018 · 5 comments
Closed

Endless 'while' loop when making a non existing directory. #442

alekseifedorov opened this issue Aug 2, 2018 · 5 comments

Comments

@alekseifedorov
Copy link

alekseifedorov commented Aug 2, 2018

The following snippet results in hanging my application:
SFTPClient sftp = sshClient.newSFTPClient();
sftp.mkdirs("/non_existent_dir/another_dir");

Everything works if the path starts with an existing directory.

The cause seems to be in SFTPClient.statExistence(current.getPath())
which returns always 'null' for the case mentioned above.

@hierynomus
Copy link
Owner

Can you check whether the fix from #415 makes a difference?

@alekseifedorov
Copy link
Author

Thanks, the fix works! It would be very nice to merge it in the master.

@alekseifedorov
Copy link
Author

Could you recommend a workaround at the moment?

@hierynomus
Copy link
Owner

The best workaround would be to build sshj manually with the fix and use that for the time being. It's currently merged so the next release it will be fixed. But before releasing that I want to fix a few other issues.

@hierynomus
Copy link
Owner

Closing this issue as it is solved with latest master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants