Bug 842567
Summary: | Incompability in interpretation of CLI scripts in JON3.1 and master | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Filip Brychta <fbrychta> | ||||||||||||||
Component: | CLI | Assignee: | RHQ Project Maintainer <rhq-maint> | ||||||||||||||
Status: | CLOSED WONTFIX | QA Contact: | Mike Foley <mfoley> | ||||||||||||||
Severity: | high | Docs Contact: | |||||||||||||||
Priority: | urgent | ||||||||||||||||
Version: | 4.5 | CC: | hrupp, lkrejci | ||||||||||||||
Target Milestone: | --- | ||||||||||||||||
Target Release: | JON 3.1.1 | ||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||
OS: | Unspecified | ||||||||||||||||
Whiteboard: | |||||||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||
Clone Of: | |||||||||||||||||
: | 844495 (view as bug list) | Environment: | |||||||||||||||
Last Closed: | 2012-07-31 09:05:54 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: | 844495 | ||||||||||||||||
Attachments: |
|
Description
Filip Brychta
2012-07-24 09:07:03 UTC
Created attachment 599961 [details]
creatingContentBackedRes.js
Created attachment 599963 [details]
stringTest.js
Created attachment 599964 [details]
output of creatingContentBackedRes.js for JON3.1
Created attachment 599965 [details]
output of creatingContentBackedRes.js for RHQ4.5
Created attachment 599967 [details]
output of stringTest.js for JON3.1
Created attachment 599968 [details]
output of stringTest.js for RHQ4.5
After playing with this I see the following problem: var a = "str" var b = "str" var test1 = a + b var test2 = "strstr" var test3 = new java.lang.String("strstr") test1 == test2 //= true test1 == test3 //= false, should be true test2 == test3 //= true The strange thing is that the above seems to work in the "raw" Rhino shell, which suggests that the bug must lie somewhere in the script engine or the RHQ's wrapper. Note that this is now fixed in master by the means of bug 844495. I think this got erroneously set to be fixed in 311 Lukas Can you confirm this issue only ever appeared in master, so there is no need for a 311 fix? If so, please close this out. Closing. The scripting refactoring was never introduced into JON 311 and so this fix only makes sense in master. Bug 844495 fixed it in there. |