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

Ilia Vassilev (JIRA) issues at jboss.org
Fri May 4 09:00:03 EDT 2018


Ilia Vassilev created ELY-1577:
----------------------------------

             Summary: Wildfly Elytron Tool, location is required even for non-filebased type e.g. PKCS11
                 Key: ELY-1577
                 URL: https://issues.jboss.org/browse/ELY-1577
             Project: WildFly Elytron
          Issue Type: Bug
          Components: Command-Line Tool
    Affects Versions: 1.3.1.Final
            Reporter: Ilia Vassilev
            Assignee: Ilia Vassilev


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