tracker issue : CF-3207446

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

Critical error with websockets and certain short messages

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 06/06/2012

Components: Web Socket

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / 282636

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Related Bugs:
CF-3307400 - Similar to


If you send a websocket message that matches certain criteria, it will throw an error in cfajax.js. For example, send just the letter f and you get an error.


I've traced it down to cfajax.js, specifically this regex:

var _d7=/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/;

If your input is a or e or f or l or n or r it is not passing this

if(_d7.test(_e8)){

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

Watson Bug ID:	3207446

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

Attachments:

Comments:

Hi Ray, I have tried with code I posted on devnet article(download.macromedia.com/pub/developer/coldfusion/websocket-demo-pt2.zip) and it worked fine for me. Please see example v6 in the given link, if it works for you.
Comment by Kunal S.
19103 | June 21, 2012 11:45:30 PM GMT
You did not understand the nature of the bug though. Your demo uses a CFC handler to change the message. I enter F, but your code makes it bigger: message = time & ": <b>" & publisherInfo.connectionInfo.username & " :</b>" & " <i>" & message & "</i>"; If you change your handler to just this: message=message; and enter 'f', you will see the issue. THe error occurs when you _receive_ the message, not when you send it.
Comment by External U.
19104 | June 22, 2012 07:57:47 AM GMT
Works fine for everything except the char 'a' it comes as 1
Comment by Kunal S.
19105 | August 09, 2012 05:42:10 AM GMT