tracker issue : CF-4126492

select a category, or use search below
(searches all categories and all time range)
Title:

cfclient strict comparison operators

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Dave Ferguson / Dave Ferguson (Dave Ferguson)

Created: 03/09/2016

Components: Mobile Support

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Beta1_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Mac All

Vote Count: 1

Using strict comparison operators in javascript inside cfclient throws an error..

Any strict comparison operator causes error... "===", "!=="


Invalid CFML construct found on line 228 at column 45.

ColdFusion was looking at the following text:
=

if (selectedMerge === 0){
				return;
}

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4126492

External Customer Info:
External Company: Disney IT
External Customer Name: Dave Ferguson
External Customer Email: dave@dkferguson.com
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Fix By Milestone newValue: Alpha oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:35:12.0 action: updated fieldName: Fix By Product Milestone newValue: Alpha oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2016-02-14 15:35:12.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: PRHaveInfo oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2016-01-12 17:37:16.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-12 15:46:38.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-12 15:46:38.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-12 15:46:38.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: PRHaveInfo oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2016-01-12 13:51:14.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2016-01-09 03:01:52.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-04 08:05:58.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-04 08:05:58.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2016-01-04 08:05:58.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: Blank oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2016-01-04 06:02:16.0 action: updated fieldName: Status newValue: ToTrack oldValue: Unverified oprid: aksriniv recordName: RQ_DEFECT timpestamp: 2016-01-04 06:02:16.0 action: updated fieldName: QE Assigned newValue: aksriniv oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-12-23 10:31:52.0 action: updated fieldName: Owner newValue: aksriniv oldValue: hkallae oprid: hkallae recordName: RQ_DEFECT timpestamp: 2015-12-23 10:31:52.0
Comment by CFwatson U.
3973 | March 09, 2016 02:18:27 AM GMT
+1 - I see the same issue.
Vote by External U.
3976 | March 09, 2016 02:18:29 AM GMT
Added By:aksriniv Note Added: Please provide code to repro the case. Date Added :2016-01-12 17:37:18.0 Added By: PreRelease User User Name:Dave Ferguson Note Added: This bug has been marked as "Need More Information" for the 2nd time. Yet no instructions were given as to what information was needed. Date Added :2016-01-12 15:46:37.0 Added By:aksriniv Note Added: Dave, by "need more information' I meant test code to repro the error. Thanks. Date Added :2016-01-12 13:52:47.0 Added By:aksriniv Note Added: Aaron, if this code block is enclosed within <script> block instead of <cfscript> this error is not thrown. Since its javascript operator it will have to be within <script> block. Thanks, Akhila. Date Added :2016-01-12 13:51:17.0 Added By: PreRelease User User Name:Aaron Neff Note Added: I see the same issue w/ the following repro that errors instead of displaying 0 twice: <cfclient> <cfscript> selectedMerge = 0; if(selectedMerge === 0) { alert(selectedMerge); } if(selectedMerge !== 1) { alert(selectedMerge); } </cfscript> </cfclient> Thanks!, -Aaron Date Added :2016-01-09 03:02:41.0 Added By: PreRelease User User Name:Dave Ferguson Note Added: This bug is marked as "Need More Information" yet no instructions were given as to what information was needed. Date Added :2016-01-04 08:05:56.0 Added By:aksriniv Note Added: Could not repro the issue, tried with below mentioned code : <cfclient> <cfset value1=0> <script> if(value1===0){ document.write(value1); } </script> </cfclient> Please provide more details to repro. Thanks. Date Added :2016-01-04 06:02:18.0 Added By: PreRelease User User Name:Dave Ferguson Note Added: Entered Bug. Date Added :2015-12-23 06:25:52.0
Comment by CFwatson U.
3974 | March 09, 2016 02:18:30 AM GMT
Closing this bug since we could not repro the issue. Enclosing the javascript code within <script></script> tags inside <cfclient> block will not result to this error. If you are still facing this issue, we will re-open this bug. Thanks, Akhila.
Comment by Akhila K.
3975 | June 23, 2016 12:26:19 AM GMT