Within the management mode, when a new outbound LDAP connection is defined, a resource is instantiated to hold the child ldap connections.
In previous versions of JBoss EAP 6, this resource was not removed after the last child connection is removed.
The behavior was encountered because the XML marshalling saw the outbound ldap connections in the model as being defined, and so wrote the `<outbound-connections>` element to contain them. As there were no connections in the model this element remained empty, which is invalid according to the schema.
Note: The parser is tolerant to this and this does not prevent a subsequent server start up.
In this release of the product the resource is removed once the last child has been removed and the parser now sees there are no defined outbound connections so an empty <outbound-connections> element is no longer written.
When I add and remove LDAP connection in management, empty element <outbound-connections/> remains in the management configuration.
However, the XSD (jboss-as-config_1_7.xsd) says the element must not be empty:
<xs:element name="outbound-connections" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="ldap" type="ldapConnectionType" minOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>
CLI steps to reproduce:
/core-service=management/ldap-connection=ldapConnection:add(url="ldap://localhost:10389", search-credential="secret", search-dn="uid=admin,ou=system")
/core-service=management/ldap-connection=ldapConnection:remove
reload
When I add and remove LDAP connection in management, empty element <outbound-connections/> remains in the management configuration. However, the XSD (jboss-as-config_1_7.xsd) says the element must not be empty: <xs:element name="outbound-connections" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="ldap" type="ldapConnectionType" minOccurs="1" /> </xs:sequence> </xs:complexType> </xs:element> CLI steps to reproduce: /core-service=management/ldap-connection=ldapConnection:add(url="ldap://localhost:10389", search-credential="secret", search-dn="uid=admin,ou=system") /core-service=management/ldap-connection=ldapConnection:remove reload