-
Bug
-
Resolution: Done
-
Major
-
None
-
None
CLI command for update CredentialReference should fail rather then pass.
Because CLI command doesn't persist any data to configuration file but pass.
I expect that command would fail and shows some error message.
How to reproduce
/subsystem=elytron/credential-store=credS004:add(uri="cr-store://test/credS004.jceks?create.storage=true", credential-reference={clear-text=pass987}, relative-to=jboss.server.data.dir)
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.store, value=credS002)
AND
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference.alias, value=credS002)
Ends with success, but it has to be a failure
These commands could lead to inconsistency.
Because there is valid state to have
credential-reference=
and credential-reference=
{store=cs, alias=alias}but not their combination.
I can use this right form of command
/subsystem=elytron/credential-store=credS004:write-attribute(name=credential-reference, value={store=credS002, alias=jimmy})
Now is everything OK.
- clones
-
JBEAP-8344 CLI command for update CredentialReference should fail rather then pass.
- Closed
- is related to
-
HAL-1296 Validate credential-reference attribute value on client side in Web Console
- Resolved