tracker issue : CF-4044095

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

[ANeff] Bug for: 3520983 not fixed

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 08/26/2015

Components: Language, Tags

Versions: 11.0

Failure Type: Crash

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 0

While testing CF11 Update 5's fixes, I found 3520983 was not fixed. Please see the following comment on that ticket:

-----------
This is not fixed in CF11 Update 5 (nor in build 11.0.0.294632). The following still throws "Error while parsing the validateparam" (unless the comma is removed from both validateparams):

MyCFC.cfc
---------
component accessors="true" {

property name="myProperty1" validate="regex" validateparams="{pattern=[!@,]}";
property name="myProperty2" validate="regex" validateparams="{pattern=[!]{1,}}";

function init() {
setMyProperty1("!");
setMyProperty2("!");
}
}

index.cfm
---------
<cfscript>
o = new MyCFC();
writeOutput(o.getMyProperty1());
writeOutput(o.getMyProperty2());
</cfscript>

Can this ticket please be re-opened and fixed?

Thanks!,
-Aaron 
-----------

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

Watson Bug ID:	4044095

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

Attachments:

Comments:

*bump* This should be fixed in Update 7, since it was -not- fixed in Update 5. Repro is simple: just run the above. Thanks!, -Aaron
Comment by External U.
6109 | September 11, 2015 12:18:23 PM GMT
If a pattern consists of a comma(,) then the pattern should be enclosed in quotes. Like for example in the above example, 1) validateparams="{pattern= '[!@,]' }" 2) validateparams="{pattern= '[!]{1,}' }" (Comment added from ex-user id:bukkittu)
Comment by Adobe D.
6110 | September 21, 2015 07:08:11 AM GMT
Hi Avinash, This ticket can be changed to Doc Bug and marked Closed/Fixed. I've updated the https://wikidocs.adobe.com/wiki/display/coldfusionen/Functions doc w/ this: ---------------------- If the pattern consists of a comma(,) then the pattern should be enclosed in quotes. Example: validateparams="{pattern= '[!]{1,}' }" ---------------------- I've verified that a pattern having a comma works when the pattern is enclosed in quotes. Thanks!, -Aaron
Comment by External U.
6111 | September 21, 2015 02:43:03 PM GMT
Closing this bug as the issue is resolved when comma is enclosed within quotes.
Comment by Akhila K.
6112 | September 23, 2015 12:07:35 AM GMT