LuciferYang opened a new pull request, #13404: URL: https://github.com/apache/gravitino/pull/13404
### What changes were proposed in this pull request? `JobManager.replacePlaceholder` now passes replacement values through `Matcher.quoteReplacement`, so substitution is literal. The no-match fallback keeps the original placeholder text as before. ### Why are the changes needed? `Matcher.appendReplacement` interprets `$` and `\` in the replacement as group references and escapes, so a value like `cost=$5` threw `IndexOutOfBoundsException` and `p$1x` substituted the wrong text. Placeholders are documented as literal substitution. Fix: #13403 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added `TestJobTemplate.testReplacePlaceholdersWithSpecialCharacters`, covering values with `$5`, `p$1x`, and a backslash. It fails against the pre-fix code. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
