Bug 1014576 - Custom server attribute outbound-socket-binding-ref is defined as required in XSD but is shown and handled as not required in CLI
Summary: Custom server attribute outbound-socket-binding-ref is defined as required in...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Mail
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: DR10
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Michael Cada
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-02 11:09 UTC by Jan Blizňák
Modified: 2019-08-19 12:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Blizňák 2013-10-02 11:09:06 UTC
Description of problem:
Custom server attribute outbound-socket-binding-ref is defined as required in XSD for mail subsystem but is shown and handled as not required in CLI.

Version-Release number of selected component (if applicable):
EAP 6.2.0.ER3

How reproducible:
Always

Steps to Reproduce:
1. Open jboss-eap-6.2/docs/schema/jboss-as-mail_1_1.xsd

2. See 
...
<xs:complexType name="custom-server-type" mixed="true">
.....
<xs:attribute name="outbound-socket-binding-ref" use="required" type="xs:string">
...

3. On default mail-session read operation description for adding new custom server
/subsystem=mail/mail-session=java\:jboss\/mail\/Default/custom=*:read-operation-description(name=add)

4. See ...
"request-properties" => {
            "outbound-socket-binding-ref" => {
                "type" => STRING,
                "description" => "Outbound Socket binding to mail server",
                "expressions-allowed" => true,
                "required" => false,
                "nillable" => true,
                "min-length" => 1L,
                "max-length" => 2147483647L
            },
....

Actual results:
value from XSD and that which CLI outputs differs


Expected results:
Synchronize XSD value with CLI - either make this attribute optional in XSD or required and not nillable in CLI.


Additional info:
I don't know how exactly parsing of config file is done, but when I edit standalone.xml and remove some required attribute (ie. outbound-socket-binding-ref of server smtp), it throws parsing exception after reload which is expectable. 
But it is not the case here, no parsing exception is thrown when I create custom server without attribute outbound-socket-binding-ref and reload, ie. it is handled also as not required.

Comment 1 Tomaz Cerar 2013-10-02 11:21:23 UTC
This is bug in XSD. CLI is right.

Comment 5 Martin Velas 2014-08-11 10:23:09 UTC
Issue is valid for EAP 6.3.0.ER10.

Comment 7 Radim Hatlapatka 2014-11-19 12:03:43 UTC
Verified in EAP 6.4.0.DR10

Note, that step 3 in steps to reproduce described in description should be /subsystem=mail/mail-session=default/server=smtp:read-operation-description(name=add)


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