[jboss-jira] [JBoss JIRA] (ELY-1576) Wildfly Elytron Tool, location is required even for non-filebased type e.g. PKCS11

Martin Choma (JIRA) issues at jboss.org
Fri May 4 08:35:01 EDT 2018


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

Martin Choma updated ELY-1576:
------------------------------
    Summary: Wildfly Elytron Tool, location is required even for non-filebased type e.g. PKCS11  (was: Location is required even for non-filebased type e.g. PKCS11)


> Wildfly Elytron Tool, location is required even for non-filebased type e.g. PKCS11
> ----------------------------------------------------------------------------------
>
>                 Key: ELY-1576
>                 URL: https://issues.jboss.org/browse/ELY-1576
>             Project: WildFly Elytron
>          Issue Type: Bug
>          Components: Command-Line Tool
>    Affects Versions: 1.3.1.Final
>            Reporter: Martin Choma
>
> Wildfly Elytron tool is not aligned with fix for ELY-1460 - Do not reuse location attribute for externalPath attribute. Make externalPath required when external configured.
> In Wildfly Elytron tool location is mandatory
> {code:java|title=CredentialStoreCommand.java}
>         String location = cmdLine.getOptionValue(STORE_LOCATION_PARAM);
>         if (location == null) {
>             setStatus(GENERAL_CONFIGURATION_ERROR);
>             throw ElytronToolMessages.msg.optionNotSpecified(STORE_LOCATION_PARAM);
>         }
> {code:java|title=CredentialStoreCommand.java}
> After relaxing this check, double check usage of location, e.g. here
> {code}
>         if ((cmdLine.hasOption(ALIASES_PARAM) || cmdLine.hasOption(CHECK_ALIAS_PARAM)) && !Files.exists(Paths.get(location))) {
>             setStatus(GENERAL_CONFIGURATION_ERROR);
>             throw ElytronToolMessages.msg.storageFileDoesNotExist(location);
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list