Bug 915279
| Summary: | torquebox_eap_overlay.rb produces invalid standalone.xml files when run on Windows with JRuby 1.7.2 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Oliver Kišš <okiss> | ||||
| Component: | TorqueBox | Assignee: | Ben Browning <bbrownin> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Karel Piwko <kpiwko> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 2.2.0 | CC: | kpiwko, mnovotny, oskutka | ||||
| Target Milestone: | ER1 | ||||||
| Target Release: | 2.2.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-02-28 14:02:02 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: | |||||||
| Attachments: |
|
||||||
|
Description
Oliver Kišš
2013-02-25 11:22:31 UTC
Marking as urgent. Oliver, is that still present with ER1? It's possible this may get fixed by updating to JRuby 1.7.3. If not then we'll try to find a workaround - building the community version of TorqueBox on Windows is broken by this same issue. I tested a very simplified version of what torquebox_eap_overlay.rb does against JRuby 1.7.3 on Windows and the issue appears fixed.
Administrator@IP-0A768BFA ~/tmp
$ jruby -v
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.6.0_24-b07 [Windows Server 2008 R2-amd64]
Administrator@IP-0A768BFA ~/tmp
$ jruby rexml_broken_comments.rb
Administrator@IP-0A768BFA ~/tmp
$ cat output.xml
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns='urn:jboss:domain:1.4'>
<foo>
<!--
<!--default for -->
<!--
<!--
~ some comment
~ and another line of comm-->
<bar/>
<baz something='other'/>
</foo>
<!--
<!--
~ some comment
~ and another line of comm-->
</server>
Administrator@IP-0A768BFA ~/tmp
$ jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on Java HotSpot(TM) 64-Bit Server VM 1.6.0_24-b07 [Windows Server 2008 R2-amd64]
Administrator@IP-0A768BFA ~/tmp
$ jruby rexml_broken_comments.rb
Administrator@IP-0A768BFA ~/tmp
$ cat output.xml
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns='urn:jboss:domain:1.4'>
<foo>
<!--default for catch all-->
<!--
~ some comment
~ and another line of comments
-->
<bar/>
<baz something='other'/>
</foo>
<!--
~ some comment
~ and another line of comments
-->
</server>
As you can see, under JRuby 1.7.3 the output does not get messed up by the comment characters in the test input I'm passing REXML.
Ben, QE updated to 1.7.3. Let's see if that can still be reproducible. Verified with JRuby 1.7.3 on W2008. I'm closing the issue as CLOSED CURRENTRELEASE as nobody else had a chance to experience this behavior. Created attachment 703903 [details]
Resulting EAP standalone-full.xml file
Attaching result of standalone-full.xml.
|