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

Defect introduced in code cleanup commit? #306

Closed
solind opened this issue Mar 8, 2017 · 5 comments
Closed

Defect introduced in code cleanup commit? #306

solind opened this issue Mar 8, 2017 · 5 comments

Comments

@solind
Copy link

solind commented Mar 8, 2017

I'm seeing the following exception sending really long strings down a ChannelOutputString, which I don't see when using a previous build:

java.lang.ArrayIndexOutOfBoundsException: null
        at net.schmizz.sshj.common.Buffer.putRawBytes(Buffer.java:266)
        at net.schmizz.sshj.connection.channel.ChannelOutputStream$DataBuffer.write(ChannelOutputStream.java:64)
        at net.schmizz.sshj.connection.channel.ChannelOutputStream.write(ChannelOutputStream.java:141)

I looked cursorily and didn't see a problem, but I suspect this might have been broken in commit 636f896.

@hierynomus
Copy link
Owner

Can you create a unit test that simulates this?

@solind
Copy link
Author

solind commented Mar 9, 2017

I'm super-busy at the moment, but I will give it a shot if you'll point me to an existing unit test that attempts to execute any command over an exec or shell channel.

If you can't, it'll just take me longer to get around to it.

@hierynomus
Copy link
Owner

hierynomus commented Mar 9, 2017 via email

@solind
Copy link
Author

solind commented Apr 25, 2017

Hi Jeroen, sorry I never managed to get that unit test working. I just tried this update and it appears fixed to me. Thanks!

@hierynomus
Copy link
Owner

No problem, the keen eyes of @dkocher found the issue ;)

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