Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-7004

pattern resolving code in the subsystem-test module failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 27.0.0.Beta1, 27.0.0.Final
    • 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

              mpetrov@redhat.com Michal Petrov
              rsearls r searls
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: