[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 Apr 5 07:23:00 EDT 2017
[ https://issues.jboss.org/browse/ELY-820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hynek Švábek resolved ELY-820.
------------------------------
Resolution: Done
It was already fixed.
> 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