Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 935403 Details for
Bug 1077668
Configuration cannot be changed on a EAP's child resource with the same name as the resource previously removed
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
CLI script to reproduce the BZ
changeConfig.js (text/plain), 1.83 KB, created by
Jan Bednarik
on 2014-09-08 15:56:24 UTC
(
hide
)
Description:
CLI script to reproduce the BZ
Filename:
MIME Type:
Creator:
Jan Bednarik
Created:
2014-09-08 15:56:24 UTC
Size:
1.83 KB
patch
obsolete
>var res = null; >var config = null; > >// find eap >var search = {resourceTypeName:"JBossAS7 Standalone Server"}; >var eap = Inventory.find(search)[0]; > >// create network interface resource, change configuration >var interfaceName = "myInterface"; >println("Creating Network Interface " + interfaceName + " for the FIRST time"); >res = eap.createChild({name:interfaceName, type:"Network Interface"}); >res.updateConfiguration({"any-address":false,"any-ipv4-address":true,"any-ipv6-address":false}); >config = res.getConfiguration(); > >//check that configuration was properly changed >println("Checking configuration of " + interfaceName + " for the FIRST time"); >assertTrue(config["any-address"] == false, "Resource configuration (any-address) was updated"); >assertTrue(config["any-ipv4-address"] == true, "Resource configuration (any-ipv4-address) was updated"); >assertTrue(config["any-ipv6-address"] == false, "Resource configuration (any-ipv6-address) was updated"); > >// delete resource >println("Removing " + interfaceName); >removed = res.remove(); >assertTrue(removed == true, "Resource " + interfaceName + "was successfully removed."); > >// and create it again >println("Creating Network Interface " + interfaceName + " for the SECOND time"); >res = eap.createChild({name:interfaceName, type:"Network Interface"}); >res.updateConfiguration({"any-address":false,"any-ipv4-address":true,"any-ipv6-address":false}); >config = res.getConfiguration(); > >// check that configuration was properly changed >println("Checking configuration of " + interfaceName + " for the SECOND time"); >assertTrue(config["any-address"] == false, "Resource configuration (any-address) was updated"); >assertTrue(config["any-ipv4-address"] == true, "Resource configuration (any-ipv4-address) was updated"); >assertTrue(config["any-ipv6-address"] == false, "Resource configuration (any-ipv6-address) was updated");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1077668
: 935403