tracker issue : CF-3777274

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

isNull(URL.foo) works but isNull(URL["foo"]) doesn't

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Henry Ho / Henry Ho (Henry Ho)

Created: 06/17/2014

Components: Language

Versions: 10.0

Failure Type: Usability Issue

Found In Build/Fixed In Build: Final / 2018,0,0,304873

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win All

Vote Count: 6

Problem Description:

isNull(URL.foo) works but isNull(URL["foo"]) doesn't.
URL.foo has not been defined.

Steps to Reproduce:

{code:java}
<cfset isNull(URL.foo)> 
<cfset isNull(URL["foo"])> 
{code}



Actual Result:

exception on 2nd line


Expected Result:

works fine just as expected


Any Workarounds:

use structKeyExists() or isDefined()

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

Watson Bug ID:	3777274

External Customer Info:
External Company:  
External Customer Name: henrylearn2rock
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Marking as Not a Bug The below snippet works as expected in ColdFusion 10 Update 13. <cfoutput>#URL.foo#</cfoutput> </br> <cfoutput>#URL["foo"]#</cfoutput> </br>
Comment by Immanuel N.
11864 | August 14, 2014 02:24:59 AM GMT
Immanuel: step ONE of triaging a bug is actually reading the detail of said bug. Which from your comment... you didn't. This is definitely a bug. And is present in all versions of CF9->11.
Comment by External U.
11865 | August 14, 2014 04:21:29 AM GMT
Thanks for pointing out again. Made a mistake with that. Opening the bug and marking it as "To Fix".
Comment by Immanuel N.
11866 | August 14, 2014 04:25:37 AM GMT
Ta.
Comment by External U.
11867 | August 14, 2014 04:27:27 AM GMT
pls fix ////////////////////////////
Vote by External U.
11870 | October 27, 2014 09:15:59 AM GMT
+1 ......................
Vote by External U.
11871 | November 16, 2014 01:48:19 AM GMT
Please fix - isNull(URL.foo) works but isNull(URL["foo"]) doesn't work
Vote by External U.
11872 | December 04, 2015 09:40:56 AM GMT
Is this a duplicate of https://tracker.adobe.com/#/view/CF-4098395 ?
Comment by Bradley W.
11868 | April 03, 2017 01:34:49 AM GMT
Ah, I already voted 3yr ago - not sure why this is still "ToFix". Will check in another 3yrs. Thanks!, -Aaron
Comment by Aaron N.
11869 | April 03, 2017 07:27:02 PM GMT
The right behavior would be to throw an exception on isNull(url.foo), since url.foo is a non-existent key. But changing this behavior now, would cause backward compatibility issues. Will not be changing the behavior of isNull(url["foo"]) to _incorrectly_ return YES.
Comment by Immanuel N.
27586 | April 19, 2018 10:58:57 AM GMT