tracker issue : CF-3854303

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

Bug for: isValid() inconsistent handling of NULL for eurodate and USdate

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Immanuel Noel)

Created: 11/19/2014

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem:
This bug was raised for better tracking. The original, customer reported bug is 3851484. 

The bug states that IsValid operations on "eurodate" and "USdate" with "null" as the value return unexpected results. 

Method:
Run the below code,
isValid("eurodate", javaCast("null", "")) 
isValid("USdate", javaCast("null", "")) 

Result:
isValid("eurodate", javaCast("null", "")) returns YES
isValid("USdate", javaCast("null", "")) returns java.lang.NullPointerException 

Expected:
Both cases should return NO especially since isDate(javaCast("null", "")) returns NO.

Workaround:

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

Watson Bug ID:	3854303

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
10006 | February 20, 2015 09:27:04 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
10007 | November 21, 2015 09:38:48 PM GMT