[jboss-jira] [JBoss JIRA] (ELY-820) CredentialStore is not able to create CS file which was deleted after server startup.

Hynek Švábek (JIRA) issues at jboss.org
Wed Dec 7 04:41:00 EST 2016


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

Hynek Švábek reassigned ELY-820:
--------------------------------

    Assignee: Peter Skopek  (was: Darran Lofthouse)


> CredentialStore is not able to create CS file which was deleted after server startup.
> -------------------------------------------------------------------------------------
>
>                 Key: ELY-820
>                 URL: https://issues.jboss.org/browse/ELY-820
>             Project: WildFly Elytron
>          Issue Type: Bug
>            Reporter: Hynek Švábek
>            Assignee: Peter Skopek
>
> CredentialStore is not able to create CS file which was deleted after server startup.
> CS file is recreated only if create.storage is set to true. But this feature would work with create.storage too.
> What do you think about it?
> *How to reproduce:*
> these steps are for creating CS file
> /subsystem=elytron/credential-store=recreate001:add(uri="cr-store://test/recreate001.jceks?store.password=pass123;create.storage=true")
> /subsystem=elytron/credential-store=recreate001/alias=alias001:add(secret-value=Elytron)
> *Own reproducer:*
> * /subsystem=elytron/credential-store=recreateCS:add(uri="cr-store://test/recreate001.jceks?store.password=pass123;create.storage=false")
> * /subsystem=elytron/credential-store=recreateCS/alias=alias2:add(secret-value=Elytron123)
> * *NOW* delete recreate001.jceks from filesystem
> * /subsystem=elytron/credential-store=recreateCS/alias=alias3:add(secret-value=Elytron123)
> * FAIL
> {code}
> {
>     "outcome" => "failed",
>     "failure-description" => "WFLYELY00009: Unable to complete operation. 'ELY09504: Cannot write storage file '/home/hsvabek/securityworkspace/VERIFICATION/CredentialStore_2016_09_14/jboss-eap-7.1.0.DR9/standalone/data/recreate001.jceks' for the store 'recreateCS''",
>     "rolled-back" => true
> }
> {code}
> * https://github.com/wildfly-security/wildfly-elytron/blob/5f0ed115ea26524045dc8037aec075c6db605d03/src/main/java/org/wildfly/security/credential/store/impl/KeystorePasswordStore.java#L397



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



More information about the jboss-jira mailing list