tracker issue : CF-3039923

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

Bug 79791:validate/type attributes of cfproperty tag won't work with nulls

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Bob Silverberg / Bob Silverberg (Bob Silverberg)

Created: 09/07/2009

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Duplicate ID:	CF-3039803

Problem:

validate/type attributes of cfproperty tag won't work with nulls.If you specify a type="date" or validate="date" ORtype="boolean" or validate="boolean", etc.And you then try to pass a NULL into the setter, you get a ColdFusion error, because CF is trying to convert the NULL into a date/boolean/etc.This makes it impossible to use this feature if you also have a property that can be set to NULL.  Ideally CF would allow for NULLs in this situation. The workaround is to simply not use the validate attribute.
Method:


Result:

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

Watson Bug ID:	3039923

External Customer Info:
External Company:  
External Customer Name: Bob Silverberg
External Customer Email: 5AD606C248A4C7F0992015A9
External Test Config: 09/07/2009

Attachments:

Comments:

Why was this closed? Not being able to use the validate on a property is NOT a benign bug. This renders the validate unusable on any property that might receive a null value, such as from Flex, which happens a lot.
Vote by External U.
22894 | November 10, 2011 07:01:21 PM GMT