-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
withFileFromClassPath fails when path to classpath resource contains spaces #263
Comments
Hi @lbialy |
…apparently deadlock somewhere between netty/docker if a previous test, affected by #263, has failed during copying of a file.
…apparently deadlock somewhere between netty/docker if a previous test, affected by #263, has failed during copying of a file.
## [1.2.0] - 2017-03-12 ### Fixed - Fix various escaping issues that may arise when paths contain spaces (#263, #279) - General documentation fixes/improvements (#300, #303, #304) - Improve reliability of `ResourceReaper` when there are a large number of containers returned by `docker ps -a` (#295) ### Changed - Support Docker for Windows via TCP socket connection (#291, #297, #309). _Note that Docker Compose is not yet supported under Docker for Windows (see #306) - Expose `docker-java`'s `CreateContainerCmd` API for low-level container tweaking (#301) - Shade `org.newsclub` and Guava dependencies (#299, #292) - Add `org.testcontainers` label to all containers created by Testcontainers (#294)
@lbialy this is hopefully fixed now - please could you let me know if you encounter any more issues? I've been developing under a path containing space for a while, just to make sure 😃 |
This encapsulates all the complexity of generating a path that the Docker daemon is about to create a volume mount for. This should resolve a general problem with spaces in paths, which was seen in one particular form as #263. Use recursive copy for docker context TAR to allow contents of directories to be used in Dockerfiles and Docker Compose contexts
This encapsulates all the complexity of generating a path that the Docker daemon is about to create a volume mount for. This should resolve a general problem with spaces in paths, which was seen in one particular form as #263. Use recursive copy for docker context TAR to allow contents of directories to be used in Dockerfiles and Docker Compose contexts
Hi @lbialy |
I'll try, thanks! |
Fixed by #279. |
Hello,
How to replicate:
resources
directory (touch src/test/resources/any_file
in this example)This will throw exception:
Issue is related to urlencoded spaces in path (%20) when using
in default implementation of
withFileFromClasspath
. Calling.toURI()
instead of.getFile()
on resource should fix this issue while not breaking anything - I'm using this workaround and seems to be fine. No PR though, sorry, simply no time to do it.The text was updated successfully, but these errors were encountered: