Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1151434 - The outbound-connections element doesn't validate against XSD after removing connection
The outbound-connections element doesn't validate against XSD after removing ...
Status: VERIFIED
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Domain Management (Show other bugs)
6.4.0
Unspecified Unspecified
unspecified Severity medium
: DR6
: EAP 6.4.0
Assigned To: Darran Lofthouse
Petr Kremensky
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-10 07:59 EDT by Josef Cacek
Modified: 2018-03-06 15:39 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Josef Cacek 2014-10-10 07:59:41 EDT
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
Comment 1 Darran Lofthouse 2014-10-14 13:24:58 EDT
Just to clarify this is an EAP only issue and does not cause subsequent start up of the server to fail.
Comment 3 Petr Kremensky 2014-10-21 07:51:51 EDT
Verified on EAP 6.4.0.DR6.

Empty <outbound-connections/> element no longer remains in configuration files.

Note You need to log in before you can comment on or make changes to this bug.