tracker issue : CF-4176297

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

calling wsPublish in a cfc method makes the request scope cleared when finalising page at onRequestEnd

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 07/27/2016

Components: Web Socket

Versions: 2016

Failure Type: Data Loss

Found In Build/Fixed In Build: CF2016_Update1 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 0

Listed in the version 2016.0.03.300466 Issues Fixed doc
Problem Description: calling wsPublish in a cfc method clears the request scope ( maybe session also? ). this is visible when you look at the request scope in the application.cfc->onRequestEnd

Steps to Reproduce:

set a request variable in application.cfc->onRequestStart
run a CFC method in webroot
dump request scope in application.cfc->onRequestEnd - it's cleared out.


Actual Result:

Expected Result:

Any Workarounds:

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

Watson Bug ID:	4176297

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

Attachments:

  1. July 30, 2016 00:00:00: 1_wspublishtest.zip
  2. May 29, 2017 00:00:00: wspublishtest.zip

Comments:

forgot to mention in the cfc method do a WSPublish();
Comment by External U.
2096 | July 27, 2016 06:49:17 PM GMT
Hi Aaron, Can you please share a test case where you have observed the same? I tried in my machine and was unable to repro.
Comment by Kailash B.
2097 | July 29, 2016 02:43:04 AM GMT
i've attached code, maybe it's the remote on the cfc method?
Comment by External U.
2098 | July 29, 2016 04:36:44 PM GMT
ah, looks like the fix hasn't fixed loss of session which also seems to be dropping off.
Comment by External U.
2099 | October 05, 2016 05:06:14 AM GMT
have attached changed wspublish test for session.
Comment by Aaron S.
2100 | May 29, 2017 12:30:25 AM GMT