[JBoss JIRA] (ELY-786) KeyAlias can be overwritten by CredentialStore alias entry.
by Hynek Švábek (JIRA)
Hynek Švábek created ELY-786:
--------------------------------
Summary: KeyAlias can be overwritten by CredentialStore alias entry.
Key: ELY-786
URL: https://issues.jboss.org/browse/ELY-786
Project: WildFly Elytron
Issue Type: Bug
Reporter: Hynek Švábek
Assignee: Darran Lofthouse
Priority: Critical
KeyAlias can be overwritten by CredentialStore alias entry.
{code}
/subsystem=elytron/credential-store=cskeyalias:add(uri="cr-store://test/cskeyalias.jceks?store.password=pass123;create.storage=true;key.alias=adminKeyAlias")
{code}
{code}
/subsystem=elytron/credential-store=credStore001/alias=adminKeyAlias:add(secret-value=Elytron)
{code}
Using of default key.alias parameter has same result
*Suggestion for solution*
Add check that aliasName isn't keyAlias.
https://github.com/wildfly-security/wildfly-elytron/blob/5f0ed115ea265240...
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (ELY-784) Schema problems in elytron-1_0.xsd
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/ELY-784?page=com.atlassian.jira.plugin.sy... ]
David Lloyd commented on ELY-784:
---------------------------------
I think I see the problem. All of the errors disappeared again... somehow the IDE is randomly finding or not finding errors in the schema. Time to switch to xmllint.
> Schema problems in elytron-1_0.xsd
> ----------------------------------
>
> Key: ELY-784
> URL: https://issues.jboss.org/browse/ELY-784
> Project: WildFly Elytron
> Issue Type: Bug
> Reporter: David Lloyd
> Assignee: David Lloyd
>
> It looks like I made a mistake in the XSD - for whatever reason I was under the impression that it was possible to embed a "choice" under an "all"; my IDE now has decided to point out that this is not allowed (not sure why it didn't do so earlier).
> So now there needs to be a solution which allows this element setup, hopefully without resorting to "sequence".
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (ELY-784) Schema problems in elytron-1_0.xsd
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/ELY-784?page=com.atlassian.jira.plugin.sy... ]
David Lloyd commented on ELY-784:
---------------------------------
The fix for choice-inside-all is to use a substitution group, which requires the elements to be declared in the root schema with an abstract base element for each group, with references to those elements from the "all".
> Schema problems in elytron-1_0.xsd
> ----------------------------------
>
> Key: ELY-784
> URL: https://issues.jboss.org/browse/ELY-784
> Project: WildFly Elytron
> Issue Type: Bug
> Reporter: David Lloyd
> Assignee: David Lloyd
>
> It looks like I made a mistake in the XSD - for whatever reason I was under the impression that it was possible to embed a "choice" under an "all"; my IDE now has decided to point out that this is not allowed (not sure why it didn't do so earlier).
> So now there needs to be a solution which allows this element setup, hopefully without resorting to "sequence".
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (ELY-784) Schema problems in elytron-1_0.xsd
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/ELY-784?page=com.atlassian.jira.plugin.sy... ]
David Lloyd commented on ELY-784:
---------------------------------
Also it is objecting to "all" succeeding a "group" reference...
> Schema problems in elytron-1_0.xsd
> ----------------------------------
>
> Key: ELY-784
> URL: https://issues.jboss.org/browse/ELY-784
> Project: WildFly Elytron
> Issue Type: Bug
> Reporter: David Lloyd
> Assignee: David Lloyd
>
> It looks like I made a mistake in the XSD - for whatever reason I was under the impression that it was possible to embed a "choice" under an "all"; my IDE now has decided to point out that this is not allowed (not sure why it didn't do so earlier).
> So now there needs to be a solution which allows this element setup, hopefully without resorting to "sequence".
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months
[JBoss JIRA] (ELY-784) Schema problems in elytron-1_0.xsd
by David Lloyd (JIRA)
David Lloyd created ELY-784:
-------------------------------
Summary: Schema problems in elytron-1_0.xsd
Key: ELY-784
URL: https://issues.jboss.org/browse/ELY-784
Project: WildFly Elytron
Issue Type: Bug
Reporter: David Lloyd
Assignee: David Lloyd
It looks like I made a mistake in the XSD - for whatever reason I was under the impression that it was possible to embed a "choice" under an "all"; my IDE now has decided to point out that this is not allowed (not sure why it didn't do so earlier).
So now there needs to be a solution which allows this element setup, hopefully without resorting to "sequence".
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 5 months