-
Bug
-
Resolution: Done
-
Blocker
-
1.0.0.Beta5
-
None
When Elytron client tries to obtain ClientConfiguration through ClientConfiguration.getInstance() method and wildfly.config.url system property includes non-absolute URI then URI for obtaining Elytron Client configuration file is created incorrectly. It is created as value_of_user.dir_system_property+content_of_wildfly.config.url_system_property. It means that Elytron Client configuration file cannot be found and hence its content is not used by Elytron Client.
It seems this issue is probably caused by fix of issue [1] in PR [2].
Thrown exception:
org.wildfly.client.config.ConfigXMLParseException: CONF0012: Failed to read from input source
at file:///home/user/temp/jboss-eap-7.1/bin/home/user/temp/wildfly-config.xml
at org.wildfly.client.config.ClientConfiguration.readConfiguration(ClientConfiguration.java:135)
at org.wildfly.security.auth.client.ElytronXmlParser.parseAuthenticationClientConfiguration(ElytronXmlParser.java:144)
at com.redhat.eap.qe.elytron.authnctx.WildflyConfigXmlServlet.parseAndCreateAuthenticationClientConfiguration(WildflyConfigXmlServlet.java:120)
... 41 more
Caused by: java.io.FileNotFoundException: /home/user/temp/jboss-eap-7.1/bin/home/user/temp/wildfly-config.xml (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.wildfly.client.config.ClientConfiguration.streamOpener(ClientConfiguration.java:71)
at org.wildfly.client.config.ClientConfiguration.readConfiguration(ClientConfiguration.java:131)
... 43 more
[1] https://issues.jboss.org/browse/JBEAP-10954
[2] https://github.com/wildfly/wildfly-client-config/pull/7/files
- clones
-
JBEAP-11539 Content of wildfly.config.url is parsed incorrectly for non-absolute URI
- Closed