Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8526

VDX - pretty print reports incomplete path for 'allowed on elements'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR12
    • 7.1.0.DR11
    • Management
    • None
    • Not Required

      VDX - pretty print reports incomplete path for 'allowed on elements'

      In wildfly-elytron subsystem definition add following snippet

                      <properties-realm name="JBossWS" plain-text="true">
                         <users-properties path="/home/development/jbossqe/devel/jbossws-cxf/modules/testsuite/cxf-tests/target/test-classes/jbossws-users.properties"/>
                         <groups-properties path="/home/development/jbossqe/devel/jbossws-cxf/modules/testsuite/cxf-tests/target/test-classes/jbossws-roles.properties"/>
                      </properties-realm>
      

      Run the server using bin/standalone.sh.

      Problematic attribute is `plain-text="true"` which moved with latest changes to users-properties element.
      https://github.com/wildfly-security/elytron-subsystem/blob/master/src/main/resources/schema/wildfly-elytron_1_0.xsd#L1078

      VDX reports this:

      OPVDX001: Validation error in standalone.xml -----------------------------------
      |
      |  344:     <groups-properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/>
      |  345: </properties-realm>
      |  346: <properties-realm name="JBossWS" plain-text="true">
      |                                        ^^^^ 'plain-text' isn't an allowed attribute for the 'properties-realm'
      |                                               element
      |                                             
      |                                             Attributes allowed here are: groups-attribute, groups-properties,
      |                                               name, users-properties 
      |
      |  347:    <users-properties path="/home/development/jbossqe/devel/jbossws-cxf/modules/testsuite/cxf-tests/target/test-classes/jbossws-users.properties"/>
      |  348:    <groups-properties path="/home/development/jbossqe/devel/jbossws-cxf/modules/testsuite/cxf-tests/target/test-classes/jbossws-roles.properties"/>
      |  349: </properties-realm>
      |
      | 'plain-text' is allowed on elements: 
      | - server > profile > {urn:wildfly:elytron:1.0}subsystem > security-realms > properties-realm
      | - server > management > security-realms > security-realm > authentication > properties
      |
      |
      | The primary underlying error message was:
      | > ParseError at [row,col]:[346,17]
      | > Message: WFLYCTL0376: Unexpected attribute 'plain-text' encountered.
      | >   Valid attributes are: 'groups-attribute, users-properties,
      | >   groups-properties, name'
      |
      |-------------------------------------------------------------------------------
      

      VDX reports that 'plain-text' is allowed for

      server > profile > {urn:wildfly:elytron:1.0}subsystem > security-realms > properties-realm
      

      It should report:

      server > profile > {urn:wildfly:elytron:1.0}subsystem > security-realms > properties-realm > users-properties
      

              tcrawley Toby Crawley (Inactive)
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: