Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1190918

Summary: System properties will not be seen in runtime if I removed and then add it in batch with CLI
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: xuzhan
Component: Domain ManagementAssignee: Panagiotis Sotiropoulos <psotirop>
Status: CLOSED WONTFIX QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.2CC: brian.stansberry, cdewolf, dandread, istudens, jawilson, msimka, olubyans, psotirop
Target Milestone: ---   
Target Release: EAP 6.4.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-16 10:44:43 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:

Description xuzhan 2015-02-10 01:25:22 UTC
Description of problem:

In batch command of CLI, if I removed an existed system property and then add the same one with value, after "run-batch", this system property will not be seen in runtime.

Version-Release number of selected component (if applicable):
EAP 6.1, 6.2, 6.3.2

How reproducible:
Easy to reproduce.

Steps to Reproduce:
1. /system-property=bar:add(value=test1)
2. batch
3. /system-property=bar:remove()
4. /system-property=bar:add(value=test2)
5. run-batch

Actual results:
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
# no "bar" in response

Expected results:
/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
# has "bar" in response

Additional info:

Comment 2 Brian Stansberry 2015-02-16 16:41:03 UTC
To get the same behavior as the remove and re-add, use the write-attribute operation to change the value of the system property resource's "value" attribute:

/system-property=bar:add(value=test1)
/system-property=bar:write-attribute(name=value,value=test2)