[JBoss JIRA] (WFLY-10337) AuthenticationPolicyContextTestCase doesn't work with -Dnode{0, 1} properties
by Petr Kremensky (JIRA)
[ https://issues.jboss.org/browse/WFLY-10337?page=com.atlassian.jira.plugin... ]
Petr Kremensky reopened WFLY-10337:
-----------------------------------
> AuthenticationPolicyContextTestCase doesn't work with -Dnode{0,1} properties
> ----------------------------------------------------------------------------
>
> Key: WFLY-10337
> URL: https://issues.jboss.org/browse/WFLY-10337
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Reporter: Petr Kremensky
> Assignee: Daniel Čihák
>
> *reproduce*
> {noformat}
> wildfly/testsuite/integration/ws] $ mvn clean test -Dtest=AuthenticationPolicyContextTestCase -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2
> ...
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost:8080/picketlink-sts-ws/EchoService?wsdl'.: java.net.ConnectException: Connection refused (Connection refused)
> at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2390)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2422)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:266)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:165)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
> ... 146 more
> {noformat}
> WSDL url
> {noformat}URL wsdl = new URL("http://localhost:8080/picketlink-sts-ws/EchoService?wsdl");{noformat} shouldn't be hardcoded. Please use {{TestSuiteEnvironment}} to build it instead.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (WFLY-10337) AuthenticationPolicyContextTestCase doesn't work with -Dnode{0, 1} properties
by Petr Kremensky (JIRA)
[ https://issues.jboss.org/browse/WFLY-10337?page=com.atlassian.jira.plugin... ]
Petr Kremensky commented on WFLY-10337:
---------------------------------------
Not good, tested with the latest master (9b6fead0a8).
{noformat}
wildfly/testsuite/integration/ws]$ mvn clean test -Dtest=AuthenticationPolicyContextTestCase -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2
...
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.325 s <<< FAILURE! - in org.jboss.as.test.integration.ws.authentication.policy.AuthenticationPolicyContextTestCase
[ERROR] test(org.jboss.as.test.integration.ws.authentication.policy.AuthenticationPolicyContextTestCase) Time elapsed: 6.317 s <<< ERROR!
javax.xml.ws.soap.SOAPFaultException: WFLYSEC0027: Invalid User
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy57.echo(Unknown Source)
at org.jboss.as.test.integration.ws.authentication.policy.AuthenticationPolicyContextTestCase.test(AuthenticationPolicyContextTestCase.java:337)
{noformat}
> AuthenticationPolicyContextTestCase doesn't work with -Dnode{0,1} properties
> ----------------------------------------------------------------------------
>
> Key: WFLY-10337
> URL: https://issues.jboss.org/browse/WFLY-10337
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Reporter: Petr Kremensky
> Assignee: Daniel Čihák
>
> *reproduce*
> {noformat}
> wildfly/testsuite/integration/ws] $ mvn clean test -Dtest=AuthenticationPolicyContextTestCase -Dnode0=$MYTESTIP_1 -Dnode1=$MYTESTIP_2
> ...
> Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost:8080/picketlink-sts-ws/EchoService?wsdl'.: java.net.ConnectException: Connection refused (Connection refused)
> at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2390)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2422)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:266)
> at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:165)
> at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85)
> ... 146 more
> {noformat}
> WSDL url
> {noformat}URL wsdl = new URL("http://localhost:8080/picketlink-sts-ws/EchoService?wsdl");{noformat} shouldn't be hardcoded. Please use {{TestSuiteEnvironment}} to build it instead.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months
[JBoss JIRA] (ELY-1294) Wildfly Elytron Tool, Credential-store command, --salt option is validated only when --summary is used too.
by Chao Wang (JIRA)
[ https://issues.jboss.org/browse/ELY-1294?page=com.atlassian.jira.plugin.s... ]
Chao Wang updated ELY-1294:
---------------------------
Component/s: Command-Line Tool
> Wildfly Elytron Tool, Credential-store command, --salt option is validated only when --summary is used too.
> -----------------------------------------------------------------------------------------------------------
>
> Key: ELY-1294
> URL: https://issues.jboss.org/browse/ELY-1294
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Command-Line Tool, Credential Store
> Reporter: Hynek Švábek
> Assignee: Chao Wang
>
> Credential-store command \-\-salt option is validated only when is \-\-summary is used too.
> It is caused by generation MASKed password for summary output[1].
> It is at least strange and confusing to user: without \-\-summary is passed, with \-\-summary is failed (entry is stored in storage successfully).
> *How to reproduce*
> {code}
> [hsvabek@dhcp-10-40-5-17 bin]$ ./elytron-tool.sh credential-store --add secret_alias --password pass123 --create -x secret_password -l store005.jceks -s 1234567890 -i 230 --summary --debug
> Alias "secret_alias" has been successfully stored
> Exception encountered executing the command:
> java.security.InvalidAlgorithmParameterException: Salt must be 8 bytes long
> at com.sun.crypto.provider.PBES1Core.init(PBES1Core.java:234)
> at com.sun.crypto.provider.PBES1Core.init(PBES1Core.java:331)
> at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineInit(PBEWithMD5AndDESCipher.java:228)
> at javax.crypto.Cipher.implInit(Cipher.java:810)
> at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
> at javax.crypto.Cipher.init(Cipher.java:1539)
> at javax.crypto.Cipher.init(Cipher.java:1470)
> at org.wildfly.security.util.PasswordBasedEncryptionUtil$Builder.createAndInitCipher(PasswordBasedEncryptionUtil.java:506)
> at org.wildfly.security.util.PasswordBasedEncryptionUtil$Builder.build(PasswordBasedEncryptionUtil.java:589)
> at org.wildfly.security.tool.MaskCommand.computeMasked(MaskCommand.java:117)
> at org.wildfly.security.tool.CredentialStoreCommand.execute(CredentialStoreCommand.java:287)
> at org.wildfly.security.tool.ElytronTool.main(ElytronTool.java:81)
> {code}
> [1] https://github.com/wildfly-security/wildfly-elytron-tool/blob/1.0.0.CR2/s...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 2 months