Skip to content

FISH-5749: Asadmin Recorder Generates Invalid Commands for MicroProfile Properties at the Server Level#8028

Merged
raushan606 merged 2 commits intopayara:mainfrom
raushan606:FISH-5749
Mar 31, 2026
Merged

FISH-5749: Asadmin Recorder Generates Invalid Commands for MicroProfile Properties at the Server Level#8028
raushan606 merged 2 commits intopayara:mainfrom
raushan606:FISH-5749

Conversation

@raushan606
Copy link
Copy Markdown
Contributor

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"

…escaped-dot property key replay-safe from the Asadmin CLI.
@raushan606 raushan606 self-assigned this Mar 20, 2026
@raushan606 raushan606 added the Type: Bug Label issue as a bug defect label Mar 20, 2026
Copy link
Copy Markdown
Contributor

@simonladen simonladen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally

Copy link
Copy Markdown
Contributor

@jtarry-payara jtarry-payara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

@raushan606
Copy link
Copy Markdown
Contributor Author

$ 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)
servers.server.server.property.payara.microprofile.mpkey=mpValue
servers.server.server.property.payara.microprofile.mpkey.name=payara.microprofile.mpkey
Command set executed successfully.
servers.server.server.property.payara.microprofile.mpkey.description=some desc
Command set executed successfully.
servers.server.server.property.payara.microprofile.mpkey1=mpValue
servers.server.server.property.payara.microprofile.mpkey1.name=payara.microprofile.mpkey1
Command set executed successfully.
servers.server.server.property.payara.microprofile.mpkey1.description=
Command set executed successfully.
Command multimode executed successfully.

@jtarry-payara I added two microprofile configs: one with a property and another without a description. Both seem to work fine.

$ cat appserver/distributions/payara/target/stage/payara7/glassfish/domains/domain1/asadmin-commands.txt
set "servers.server.server.property.payara\.microprofile\.mpkey=mpValue" servers.server.server.property.payara.microprofile.mpkey.name=payara.microprofile.mpkey
set "servers.server.server.property.payara.microprofile.mpkey.description=some desc"
set "servers.server.server.property.payara\.microprofile\.mpkey1=mpValue" servers.server.server.property.payara.microprofile.mpkey1.name=payara.microprofile.mpkey1
set servers.server.server.property.payara.microprofile.mpkey1.description=

Copy link
Copy Markdown
Contributor

@jtarry-payara jtarry-payara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
tested in linux & windows all working well

@raushan606 raushan606 merged commit 8857ee9 into payara:main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Label issue as a bug defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants