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.
This issue is regression between EAP 7.1.0.ER1 and EAP 7.1.0.DR19 (and EAP 7.1.0.Alpha). We request blocker since it breaks feature in RFE EAP7-567 Client Side Security (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
- is cloned by
-
WFCC-5 Content of wildfly.config.url is parsed incorrectly for non-absolute URI
- Resolved
- is incorporated by
-
JBEAP-11466 (7.1.0) Upgrade to WildFly Core to 3.0.0.Beta28
- Closed
- is related to
-
JBEAP-10954 (7.1.z) System property wildfly.config.url does not work with Windows path to local file without protocol
- Closed