X Tutup
Skip to content

Bind.parse() fails when access mode is specified#63

Merged
marcuslinke merged 3 commits intodocker-java:masterfrom
albers:bind-parse
Sep 28, 2014
Merged

Bind.parse() fails when access mode is specified#63
marcuslinke merged 3 commits intodocker-java:masterfrom
albers:bind-parse

Conversation

@albers
Copy link
Copy Markdown
Contributor

@albers albers commented Sep 27, 2014

Due to an off-by-one error only input without given access mode (like /host:/container) could be parsed, see added test.
Also added support for read-only (:ro) specifications.

I would also like to change the thrown exception to IllegalArgumentException in Bind.parse() and Volume.parse().
Is this OK, should I amend this PR with it?

@marcuslinke
Copy link
Copy Markdown
Contributor

@albers Thanks for your patch! Feel free to change the RuntimeException to IllegalArgumentExceptionwithin this PR.

marcuslinke added a commit that referenced this pull request Sep 28, 2014
Bind.parse() fails when access mode is specified
@marcuslinke marcuslinke merged commit 328d345 into docker-java:master Sep 28, 2014
@albers albers deleted the bind-parse branch September 29, 2014 05:10
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

Successfully merging this pull request may close these issues.

2 participants

X Tutup