[jboss-jira] [JBoss JIRA] (ELY-1036) CS tool, There is possibility define same option parameter more times.

Hynek Švábek (JIRA) issues at jboss.org
Tue May 16 03:09:00 EDT 2017


     [ https://issues.jboss.org/browse/ELY-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hynek Švábek updated ELY-1036:
------------------------------
    Description: 
There is possibility define same option parameter more times. It doesn't matter if some short/long form or combination there is used first occurrence in command.

Command with two option "add" and "secret".
{code}
[hsvabek at localhost bin]$ java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret supersecretpassword --location="test.store" --password mycspassword --summary --salt 12345678 --iteration 230 --add alias2 --secret secretValue2 -create         
Alias "myalias" has been successfully stored
Credential store command summary:
--------------------------------------
/subsystem=elytron/credential-store=test:add(uri="cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS",relative-to=jboss.server.data.dir,credential-reference={clear-text="MASK-uNWeyrmbByBEjgZM1FAPQW==;12345678;230"})
{code}

*Same for "mask" command.*

  was:
There is possibility define same option parameter more times. It doesn't matter if some short/long form or combination there is used first occurrence in command.

Command with two option "add" and "secret".
{code}
[hsvabek at localhost bin]$ java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret supersecretpassword --location="test.store" --uri "cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS" --password mycspassword --summary --salt 12345678 --iteration 230 --add alias2 --secret secretValue2
Alias "myalias" has been successfully stored
Credential store command summary:
--------------------------------------
/subsystem=elytron/credential-store=test:add(uri="cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS",relative-to=jboss.server.data.dir,credential-reference={clear-text="MASK-uNWeyrmbByBEjgZM1FAPQW==;12345678;230"})
{code}

*Same for "mask" command.*



> CS tool, There is possibility define same option parameter more times. 
> -----------------------------------------------------------------------
>
>                 Key: ELY-1036
>                 URL: https://issues.jboss.org/browse/ELY-1036
>             Project: WildFly Elytron
>          Issue Type: Bug
>          Components: Command-Line Tool
>            Reporter: Hynek Švábek
>            Assignee: Ingo Weiss
>
> There is possibility define same option parameter more times. It doesn't matter if some short/long form or combination there is used first occurrence in command.
> Command with two option "add" and "secret".
> {code}
> [hsvabek at localhost bin]$ java -jar wildfly-elytron-tool.jar credential-store --add myalias --secret supersecretpassword --location="test.store" --password mycspassword --summary --salt 12345678 --iteration 230 --add alias2 --secret secretValue2 -create         
> Alias "myalias" has been successfully stored
> Credential store command summary:
> --------------------------------------
> /subsystem=elytron/credential-store=test:add(uri="cr-store://test.store?modifiable=true;create=true;keyStoreType=JCEKS",relative-to=jboss.server.data.dir,credential-reference={clear-text="MASK-uNWeyrmbByBEjgZM1FAPQW==;12345678;230"})
> {code}
> *Same for "mask" command.*



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list