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

[GSS](7.2.z) Multiple <socket> elements inside an http-interface parsed wrongly

XMLWordPrintable

      The definition of the http-interface for the management-interface in the wildfly-config_5_0.xsd is defined as:

          <xs:complexType name="host-http-management-interfaceType">
              <xs:annotation>
                  <xs:documentation>
                      Configuration of a host's exposed HTTP management interface.
                  </xs:documentation>
              </xs:annotation>
              <xs:complexContent>
                  <xs:extension base="http-management-interfaceType">
                      <xs:sequence>
                          <xs:element name="socket" type="host-http-management-socketType"/>
                      </xs:sequence>
                      <xs:attribute name="console-enabled" type="xs:boolean" use="optional" default="true"/>
                  </xs:extension>
              </xs:complexContent>
          </xs:complexType>
      

      Where xs:sequence has a default definition of:

      • maxOccurs Optional. Specifies the maximum number of times the sequence element can occur in the parent element. The value can be any number >= 0, or if you want to set no limit on the maximum number, use the value "unbounded". Default value is 1
      • minOccurs Optional. Specifies the minimum number of times the sequence element can occur in the parent element. The value can be any number >= 0. Default value is 1

      But the parser allows to configure multiple sockets like this:

                  ...
                  <security-realm name="ManagementRealm">
                      <server-identities>
                          <ssl>
                              <keystore path="server.keystore" relative-to="jboss.domain.config.dir" keystore-password="******" alias="server"/>
                          </ssl>
                      </server-identities>
                      <authentication>
                          <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/>
                      </authentication>
                  </security-realm>
                  ...
                  <http-interface security-realm="ManagementRealm">
                      <http-upgrade enabled="true"/>
                      <socket interface="local" port="${jboss.management.local.http.port:9990}"/>
                      <socket interface="management" secure-port="${jboss.management.https.port:9443}"/>
                  </http-interface>
          ...
          <interfaces>
              <interface name="local">
                  <inet-address value="${jboss.bind.address.local.management:127.0.0.1}"/>
              </interface>
              <interface name="management">
                  <inet-address value="${jboss.bind.address.management:jbaesner.remote.csb}"/>
              </interface>
          </interfaces>
          ...
      

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              rhn-support-jbaesner Joerg Baesner
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: