X Tutup
Skip to content

Fix exec start stdin encoding#466

Merged
marcuslinke merged 2 commits intodocker-java:masterfrom
rtimush:fix-exec-stdin
Feb 16, 2016
Merged

Fix exec start stdin encoding#466
marcuslinke merged 2 commits intodocker-java:masterfrom
rtimush:fix-exec-stdin

Conversation

@rtimush
Copy link
Copy Markdown
Contributor

@rtimush rtimush commented Feb 16, 2016

stdin is now encoded like this: abc -> \0\0\0a\0\0\0b\0\0\0c. This works with /bin/sh, but doesn't work with other commands.

This pull request removes stream re-encoding and sends the InputStream directly to channel.

@KostyaSha
Copy link
Copy Markdown
Member

Is it only netty issue?

@rtimush
Copy link
Copy Markdown
Contributor Author

rtimush commented Feb 16, 2016

Yes, netty-only. As I understood jaxrs-based implementation doesn't support stdin at all.

@KostyaSha
Copy link
Copy Markdown
Member

Ah, right!
👍
@marcuslinke ?

@marcuslinke marcuslinke changed the title Fix stdin encoding Fix exec start stdin encoding Feb 16, 2016
marcuslinke added a commit that referenced this pull request Feb 16, 2016
Fix exec start stdin encoding
@marcuslinke marcuslinke merged commit 9ec46f4 into docker-java:master Feb 16, 2016
@marcuslinke
Copy link
Copy Markdown
Contributor

@rtimush Thanks!

@KostyaSha KostyaSha added this to the 3.0.0 milestone Feb 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup