[
https://issues.jboss.org/browse/WFLY-8005?page=com.atlassian.jira.plugin....
]
Hynek Švábek updated WFLY-8005:
-------------------------------
Description:
There are two different error messages for adding duplicate record to CS by same command.
*How to reproduce*
{code}
/subsystem=elytron/credential-store=cs007:add(uri="cr-store://test/customcredCS007.jceks?create.storage=true",
credential-reference={clear-text=pass123})
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{code}
And now we try add there same alias with exactly same name and with name in uppercase
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0212: Duplicate resource [
(\"subsystem\" => \"elytron\"),
(\"credential-store\" => \"cs007\"),
(\"alias\" => \"alias001\")
]",
"rolled-back" => true
}
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=ALIAS001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYELY00913: Credential alias
\"alias001\" of credential type
\"org.wildfly.security.credential.PasswordCredential\" already exists in the
store",
"rolled-back" => true
}
{code}
You can see different error message.
was:
There are two different error messages for adding duplicate record to CS with same
command.
*How to reproduce*
{code}
/subsystem=elytron/credential-store=cs007:add(uri="cr-store://test/customcredCS007.jceks?create.storage=true",
credential-reference={clear-text=pass123})
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{code}
And now we try add there same alias with exactly same name and with name in uppercase
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0212: Duplicate resource [
(\"subsystem\" => \"elytron\"),
(\"credential-store\" => \"cs007\"),
(\"alias\" => \"alias001\")
]",
"rolled-back" => true
}
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=ALIAS001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYELY00913: Credential alias
\"alias001\" of credential type
\"org.wildfly.security.credential.PasswordCredential\" already exists in the
store",
"rolled-back" => true
}
{code}
You can see different error message.
There are two different error messages for adding duplicate record to
CS with same command.
-------------------------------------------------------------------------------------------
Key: WFLY-8005
URL:
https://issues.jboss.org/browse/WFLY-8005
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: Hynek Švábek
Assignee: Peter Skopek
There are two different error messages for adding duplicate record to CS by same
command.
*How to reproduce*
{code}
/subsystem=elytron/credential-store=cs007:add(uri="cr-store://test/customcredCS007.jceks?create.storage=true",
credential-reference={clear-text=pass123})
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{code}
And now we try add there same alias with exactly same name and with name in uppercase
{code}
/subsystem=elytron/credential-store=cs007/alias=alias001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0212: Duplicate resource [
(\"subsystem\" => \"elytron\"),
(\"credential-store\" => \"cs007\"),
(\"alias\" => \"alias001\")
]",
"rolled-back" => true
}
{code}
{code}
/subsystem=elytron/credential-store=cs007/alias=ALIAS001:add(secret-value=secret)
{
"outcome" => "failed",
"failure-description" => "WFLYELY00913: Credential alias
\"alias001\" of credential type
\"org.wildfly.security.credential.PasswordCredential\" already exists in the
store",
"rolled-back" => true
}
{code}
You can see different error message.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)