tracker issue : CF-3040952

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

Bug 82127:Summary: isValid() gives false positives when validating GUIDSSee steps to reproduce

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 02/17/2010

Components: General Server

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Minor / Unknown

Locale/System: English / Platforms All

Vote Count: 6

Problem:

Summary: isValid() gives false positives when validating GUIDSSee steps to reproduce.  The output is:[DE1F398D-CA9E-D0C6-D62F-E5E52BE0E229]: YES (CORRECT)[DE1F398D-CA9E-D0C6-D62F-E5E52BE0E229 ]: YES (INCORRECT)[ DE1F398D-CA9E-D0C6-D62F-E5E52BE0E229 ]: YES (INCORRECT)Only the first one should validate as a GUID.  Same problem  with UUIDs.
Method:

<cfset u = insert("-", createUuid(), 23)><cfoutput>[#u#]: #isValid("GUID", u)# (CORRECT)<br /><cfset u &= " "><!--- append a space --->[#u#]: #isValid("GUID", u)# (INCORRECT)<br /><cfset u = " " & u><!--- prepend another space --->[#u#]: #isValid("GUID", u)# (INCORRECT)<br /></cfoutput>
Result:

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

Watson Bug ID:	3040952

External Customer Info:
External Company:  
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 02/17/2010

Attachments:

Comments: