[jboss-jira] [JBoss JIRA] (AS7-5110) Destructive Change to the .xml file ie Losing comments in the file.
Jim Tyrrell (JIRA)
jira-events at lists.jboss.org
Tue Jul 3 17:06:12 EDT 2012
[ https://issues.jboss.org/browse/AS7-5110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704467#comment-12704467 ]
Jim Tyrrell commented on AS7-5110:
----------------------------------
Another easier way to reproduce this bug.
Start up with ./domain.sh
Create a user.
check out the host.xml file and note the following comments:
<server name="server-one" group="main-server-group">
<!-- Remote JPDA debugging for a specific server
<jvm name="default">
<jvm-options>
<option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
</jvm>
-->
</server>
Change server-three to auto start and then save it.
look at the host.xml file.
<server name="server-one" group="main-server-group" auto-start="true"/>
Now the comments are gone.
> Destructive Change to the .xml file ie Losing comments in the file.
> --------------------------------------------------------------------
>
> Key: AS7-5110
> URL: https://issues.jboss.org/browse/AS7-5110
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Console
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Jim Tyrrell
> Assignee: Heiko Braun
> Labels: eap6-ux
>
> Run the following commands with a clean EAP install:
> ./domain.sh --host-config=host-master.xml
> Edit the host-slave.xml file, by changing the default 9999 port to 29999 as shown:
> <native-interface security-realm="ManagementRealm">
> <socket interface="management" port="${jboss.management.native.port:29999}"/>
> </native-interface>
> Start up the host slave:
> ./domain.sh --host-config=host-slave.xml -Djboss.domain.master.address=127.0.0.1
> Create a generic admin user of your choosing.
> Look at the host-slave.xml file and note this section:
> <!-- server-two avoids port conflicts by incrementing the ports in
> the default socket-group declared in the server-group -->
> Add in an auto-start="true" flag as shown:
> <server name="server-two" group="other-server-group" auto-start="true">
> <!-- server-two avoids port conflicts by incrementing the ports in
> the default socket-group declared in the server-group -->
> <socket-bindings port-offset="150"/>
> </server>
> Change in the console auto start to false:
> Now more the contents of the host-slave.xml file:
> <server name="server-two" group="other-server-group" auto-start="false">
> <socket-bindings port-offset="150"/>
> </server>
> Note your comments are gone.
> Imagine I was an admin for whatever reason and I had commented out a section and it was now removed. This is kind of bad.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list