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

.env fail to read config property using numbers #42063

Closed
cescoffier opened this issue Jul 23, 2024 · 3 comments
Closed

.env fail to read config property using numbers #42063

cescoffier opened this issue Jul 23, 2024 · 3 comments
Labels
area/config kind/bug Something isn't working

Comments

@cescoffier
Copy link
Member

Describe the bug

Let's imagine a .env file with the following content:

quarkus.tls.key-store.pem.acme.cert=/Users/clement/Downloads/code-with-quarkus/.letsencrypt/lets-encrypt.crt
quarkus.tls.key-store.pem.acme.key=/Users/clement/Downloads/code-with-quarkus/.letsencrypt/lets-encrypt.key

This one works (HTTPS enabled).

However, if I change the content to be:

quarkus.tls.key-store.pem.0.cert=/Users/clement/Downloads/code-with-quarkus/.letsencrypt/lets-encrypt.crt
quarkus.tls.key-store.pem.0.key=/Users/clement/Downloads/code-with-quarkus/.letsencrypt/lets-encrypt.key

It ignores the properties (only HTTP). I do not have any error or warning in the log.

PS: I'm using a packaged application (so not dev mode)

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@cescoffier cescoffier added the kind/bug Something isn't working label Jul 23, 2024
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 23, 2024

/cc @radcortez (config)

@radcortez
Copy link
Member

Hum, I've tried to use that configuration in .env and it seems to be read correctly:

Screenshot 2024-07-23 at 12 41 11

Screenshot 2024-07-23 at 12 41 47

@cescoffier
Copy link
Member Author

Hum, this is weird; it ignored it for me while using 999-SNAPSHOT (maybe a slightly older version from one week or two).

Anyway, good to see it covered.

@cescoffier cescoffier closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants