[jboss-jira] [JBoss JIRA] (ELY-718) Problems with creating CredentialStore from scratch when directory path doesn't exist.

Hynek Švábek (JIRA) issues at jboss.org
Thu Nov 3 11:36:00 EDT 2016


Hynek Švábek created ELY-718:
--------------------------------

             Summary: Problems with creating CredentialStore from scratch when directory path doesn't exist.
                 Key: ELY-718
                 URL: https://issues.jboss.org/browse/ELY-718
             Project: WildFly Elytron
          Issue Type: Bug
            Reporter: Hynek Švábek
            Assignee: Darran Lofthouse


There are problems with creating CredentialStore from scratch when directory path doesn't exist.

*How to reproduce*
* /subsystem=elytron/credential-store=cs007:add(uri="cr-store://test/folderNotExist/keystorecs007.jceks?store.password=pass123;create.storage=true")
* /subsystem=elytron/credential-store=cs007/alias=newCs007:add(secret-value=Elytron)

*You can see this error message*
{code}
{
    "outcome" => "failed",
    "failure-description" => "WFLYELY00009: Unable to complete operation. 'ELY09504: Cannot write storage file '/home/hsvabek/securityworkspace/AAA_prezentace/jboss-eap-7.1.0.DR7/standalone/data/folderNotExist/keystorecs007.jceks' for the store 'cs007''",
    "rolled-back" => true
}
{code}

When you execute repeatedly last command /subsystem=elytron/credential-store=cs007/alias=newCs007:add(secret-value=Elytron)
you get information about duplicate resource. It's mean the entry is in Credential Store (in memory) but not in file...
{code}
{
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0212: Duplicate resource [
    (\"subsystem\" => \"elytron\"),
    (\"credential-store\" => \"cs123\"),
    (\"alias\" => \"newCs007\")
]",
    "rolled-back" => true
}
{code}

*My suggestion solutions of this two problems:*
* try to create directory path
* when fails creating of CredentialStore file then we remove entry from memory too. It can be confusing have entry only in memory.



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



More information about the jboss-jira mailing list