[jboss-jira] [JBoss JIRA] (ELY-300) Absence of key-store-credential NPEs

Kabir Khan (JIRA) issues at jboss.org
Wed Sep 30 11:41:00 EDT 2015


Kabir Khan created ELY-300:
------------------------------

             Summary: Absence of key-store-credential NPEs
                 Key: ELY-300
                 URL: https://issues.jboss.org/browse/ELY-300
             Project: WildFly Elytron
          Issue Type: Bug
            Reporter: Kabir Khan
            Assignee: Darran Lofthouse
             Fix For: 1.1.0.Alpha1


Trying to parse
{code}
<authentication-client xmlns="urn:elytron:1.0">
    <key-stores>
        <key-store name="test" type="PasswordFile">
            <file name="keystore/xml-client-keystore-credential-test.keystore"/>
            <!--<key-store-credential key-store-name="test" alias="test-alias"/>-->
        </key-store>
    </key-stores>
</authentication-client>
{code}

I end up with 
{code}
java.lang.NullPointerException
	at org.wildfly.security.auth.client.ElytronXmlParser$AbstractKeyStoreFactory.create(ElytronXmlParser.java:1082)
	at org.wildfly.security.auth.client.ElytronXmlParser$AbstractKeyStoreFactory.create(ElytronXmlParser.java:1067)
	at org.wildfly.security.OneTimeSecurityFactory.create(OneTimeSecurityFactory.java:45)
	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseKeyStoreRefType$115(ElytronXmlParser.java:709)
	at org.wildfly.security.auth.client.ElytronXmlParser$$Lambda$4/1929600551.create(Unknown Source)
	at org.wildfly.security.auth.client.KeyStoreEntrySecurityFactory.create(KeyStoreEntrySecurityFactory.java:47)
	at org.wildfly.security.auth.client.KeyStoreEntrySecurityFactory.create(KeyStoreEntrySecurityFactory.java:30)
	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationClientRuleType$106(ElytronXmlParser.java:425)
	at org.wildfly.security.auth.client.ElytronXmlParser$$Lambda$5/1053782781.create(Unknown Source)
	at org.wildfly.security.OneTimeSecurityFactory.create(OneTimeSecurityFactory.java:45)
	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationClientRuleType$113(ElytronXmlParser.java:474)
	at org.wildfly.security.auth.client.ElytronXmlParser$$Lambda$6/2012232625.create(Unknown Source)
	at org.wildfly.security.auth.client.ElytronXmlParser.lambda$parseAuthenticationClientRulesType$88(ElytronXmlParser.java:242)
	at org.wildfly.security.auth.client.ElytronXmlParser$$Lambda$7/627150481.create(Unknown Source)
	at org.wildfly.security.OneTimeSecurityFactory.create(OneTimeSecurityFactory.java:45)
	at org.wildfly.security.auth.client.XmlClientKeyStoreCredentialTest.testKeystoreCredential(XmlClientKeyStoreCredentialTest.java:110)
{code}

This appears to be because the passwordFactory is only instantiated when parsing the key-store-credential element




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list