Skip to content

[Bug]: file path with spaces in not properly decoded during tests #9025

@simpletasks

Description

@simpletasks

Module

Core

Testcontainers version

master

Using the latest Testcontainers version?

Yes

Host OS

Windows

Host Arch

x86

Docker version

26.1.1

What happened?

On local build of the testcontainer project with gradlew clean build -x test,
core module tests failed because spaces in the path of the jar file.

Relevant log output

Caused by: java.lang.RuntimeException: java.nio.file.NoSuchFileException: C:\Users\Krunoslav%20Magazin\projects\testcontainers-java\core\build\libs\testcontainers.jar
	at org.testcontainers.AbstractJarFileTest.<clinit>(AbstractJarFileTest.java:21)

Additional Information

Create a directory with space in the name. Inside the directory put testcontainers-java project and try to build it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions