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

QuarkusIntegrationTest cannot locate build output directory if it contains special characters like # #353

Closed
snowdrop-bot opened this issue Jun 2, 2021 · 0 comments
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

My project path contains '#' character, which gives me the following exception:

java.lang.IllegalStateException: The determined Quarkus build output 'C:\Workspace\%23git\test\service\test-service\target' is not a directory
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.determineBuildOutputDirectory(QuarkusIntegrationTestExtension.java:154)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.readQuarkusArtifactProperties(QuarkusIntegrationTestExtension.java:112)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.ensureStarted(QuarkusIntegrationTestExtension.java:79)
	at io.quarkus.test.junit.QuarkusIntegrationTestExtension.beforeAll(QuarkusIntegrationTestExtension.java:73)
        ...

The problem is:
https://github.com/quarkusio/quarkus/blob/13fb194d4f3cf25495758f325aee5977a80d91a4/test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java#L277

Which uses url.getPath, which gives an URL-encoded path! This can be fixed by calling URLDecoder.decode(p, "UTF-8") before providing the path to the File constructor.


quarkusio#17607


$upstream:17607$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants