Bug 1251542

Summary: [GSS](6.4.z) Outbound-socket details not rendered in admin console if ports use expressions
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Lami Akagwu <lakagwu>
Component: Web ConsoleAssignee: Bartek Spyrko-Smietanko <bspyrkos>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Jelinek <pjelinek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4.2CC: bmaxwell, brian.stansberry, bspyrkos, hbraun, hpehl, istudens, jkudrnac, pjelinek
Target Milestone: CR1   
Target Release: EAP 6.4.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 10:47:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1235744, 1247280    

Description Lami Akagwu 2015-08-07 15:53:18 UTC
Description of problem:
No outbound socket details are visible if any of the ports uses an expression

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Change 

        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="25"/>
        </outbound-socket-binding>

To **replacing port="25" with port="${app.smtp:25}" i.e an expression 

        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="localhost" port="${app.smtp:25}"/>
        </outbound-socket-binding>

2. View the the "outbound remote" tab in http://localhost:9990/console/App.html#socket-bindings

3. The mail-smtp outbound socket is no longer is visible in the console.

4. Snippet from trace logs

------

16:2516:25:44,607 TRACE [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 2) Executing "read-children-resources" [("socket-binding-group" => "standard-sockets")]
16:25:44,609 TRACE [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 3) Executing "read-children-resources" [("socket-binding-group" => "standard-sockets")]
:44,617 TRACE [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 3) Prepared response is {
    "outcome" => undefined,
    "result" => {"mail-smtp" => {
        "fixed-source-port" => false,
        "host" => "localhost",
        "port" => expression "${app.smtp:25}",
        "source-interface" => undefined,
        "source-port" => undefined
    }}
}
------

Actual results:
No outbound socket config is visible if *any* of them uses an expression for its ports 


Expected results:
Outbound socket config should be visible via the admin console if any of the attributes use expressions  

Additional info:

You can test adding one outbound socket which uses no expressions and then another one which uses an expression for its ports. Same results i.e nothing rendered in the admin console.

Comment 1 Bartek Spyrko-Smietanko 2015-08-11 13:27:22 UTC
Upstream issue: https://issues.jboss.org/browse/HAL-788

Comment 3 Bartek Spyrko-Smietanko 2015-08-17 10:27:30 UTC
PR for 2.5.x: https://github.com/hal/core/pull/56

Comment 4 JBoss JIRA Server 2015-08-18 08:40:15 UTC
Harald Pehl <hpehl> updated the status of jira HAL-788 to Resolved

Comment 5 Harald Pehl 2015-08-18 08:41:06 UTC
Merged PR into 2.5.x: https://github.com/hal/core/pull/56

Comment 7 Pavel Jelinek 2015-09-23 07:08:46 UTC
Verified for EAP 6.4.4.CP.CR3.

Comment 8 Petr Penicka 2017-01-17 10:47:57 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.