Skip to content

Add test case to expose bug with placeholder in default value for known value - #118

Closed
KyRobbins wants to merge 1 commit into
mojohaus:masterfrom
KyRobbins:master
Closed

KyRobbins wants to merge 1 commit into
mojohaus:masterfrom
KyRobbins:master

Conversation

@KyRobbins

Copy link
Copy Markdown
Contributor

Added a test case that exposes a bug when resolving a known value and using a placeholder in the default value. The following value:

${knownValue:${fallback}}

Where knownValue=known value, currently resolves as known value}

@slachiewicz slachiewicz added the bug Something isn't working label Dec 22, 2024
@slachiewicz

Copy link
Copy Markdown
Member

Thank you @KyRobbins for providing the test case exposing this nested placeholder bug. Since this PR currently contains only the failing test, would you like to also submit the fix in PropertyResolver.java (handling the nested ${...} closing brace balance when resolving delimiters) so that the test suite passes and this can be merged?

@slachiewicz

Copy link
Copy Markdown
Member

Your failing test was cherry-picked as authored into #183 together with the fix for #116, now merged. Thank you; closing this one as superseded.

@slachiewicz slachiewicz closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants