-
Bug
-
Resolution: Done
-
Major
-
26.0.0.Beta2
-
None
-
None
For this xml
<redirect-rewrite-rule name="^/wsmain/api/(.*)$" replacement="/api/$1/" />
<verify-token-audience>true</verify-token-audience>
this error is thrown
javax.xml.stream.XMLStreamException:
ParseError at [row,col]:[62,38]
Message: found: CHARACTERS, expected START_ELEMENT or END_ELEMENT
When this xml is used
<verify-token-audience>true</verify-token-audience>
<redirect-rewrite-rule name="^/wsmain/api/(.*)$" replacement="/api/$1/" />
no error is thrown. The code is processed successfully.
To reproduce this issue in the current wildfly edit elytron-oidc-client/src/test/resources/org/wildfly/extension/elytron/oidc/elytron-oidc-client-preview-3.0.xml
Move line 59 to after line 61. It will look like this.
<redirect-rewrite-rule name="^/wsmain/api/(.*)$" replacement="/api/$1/" />
<verify-token-audience>true</verify-token-audience>
Run the test like this.
mvn -f elytron-oidc-client test -Dtest=ElytronOidcClientSubsystemTestCase