FISH-5749: Asadmin Recorder Generates Invalid Commands for MicroProfile Properties at the Server Level#8028
Merged
raushan606 merged 2 commits intopayara:mainfrom Mar 31, 2026
Merged
Conversation
…escaped-dot property key replay-safe from the Asadmin CLI.
jtarry-payara
requested changes
Mar 24, 2026
Contributor
There was a problem hiding this comment.
Still fails if you record a description:
$ cat appserver/distributions/payara/target/stage/payara7/glassfish/domains/domain1/asadmin-commands.txt
set "property.payara\.microprofile\.payara\.observability\.security\.store\.type=foo" property.payara.microprofile.payara.observability.security.store.type.name=payara.microprofile.payara.observability.security.store.type
set property.payara.microprofile.payara.observability.security.store.type.description=some desc
$ appserver/distributions/payara/target/stage/payara7/bin/asadmin < appserver/distributions/payara/target/stage/payara7/glassfish/domains/domain1/asadmin-commands.txt
Use "exit" to exit and "help" for online help.
Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
property.payara.microprofile.payara.observability.security.store.type=foo
property.payara.microprofile.payara.observability.security.store.type.name=payara.microprofile.payara.observability.security.store.type
Command set executed successfully.
remote failure: Invalid name value pair desc. Missing expected equal sign.
Command set failed.
Command multimode failed.
This appears to work ok:
$ cat appserver/distributions/payara/target/stage/payara7/glassfish/domains/domain1/asadmin-commands.txt
set "property.payara\.microprofile\.payara\.observability\.security\.store\.type=foo" property.payara.microprofile.payara.observability.security.store.type.name=payara.microprofile.payara.observability.security.store.type
set "property.payara.microprofile.payara.observability.security.store.type.description=some desc"
…ting for values with spaces
Contributor
Author
@jtarry-payara I added two microprofile configs: one with a property and another without a description. Both seem to work fine. |
jtarry-payara
approved these changes
Mar 30, 2026
Contributor
jtarry-payara
left a comment
There was a problem hiding this comment.
LGTM
tested in linux & windows all working well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When the Asadmin Recorder is active and a MicroProfile config property is saved from the Admin Console at server level, the recorded set command lacks the double-quoting required to make the escaped-dot property key replay-safe from the Asadmin CLI.
Important Info
Blockers
Testing
New tests
Testing Performed
Testing Environment
Documentation
Notes for Reviewers
After the fix, the set commands is like this:
set "servers.server.server.property.payara\.microprofile\.mpkey=mpValue"