tracker issue : CF-3148178

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

CF901 vs CF10 wrt cffileupload sessionID

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

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

Created: 03/24/2012

Components: AJAX, UI Components

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Public Beta / 283287

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 2

In CF901, the cffileupload action page maintains session.  In CF10 it doesn’t.

(code below)

Steps:
1) Upload a file
2) Refresh/F5
3) Compare "sessionid" in the SESSION and APPLICATION scope dumps.

Same issue regardless of "Use J2EE session variables" setting.

Also note SESSION.mySessionVar doesn't exist on the action page (APPLICATION.uploadInfo contains a duplicate of the action page's SESSION scope).

----------------------
Application.cfc:
----------------------
component {THIS.name="Testcffileuploadsession"; THIS.sessionManagement=true;}

----------------------
index.cfm
----------------------
<cfif structKeyExists(FORM, "filename")>
  <cffile action="uploadall" destination="#expandPath('.')#" nameconflict="overwrite">
  <cfset APPLICATION.uploadInfo = {url=duplicate(URL), session=duplicate(SESSION)} />
</cfif>

<cfset SESSION.mySessionVar = "my_session_var_value" />
<cffileupload />
<cfdump var="#SESSION#" />
<cfdump var="#APPLICATION#" />
----------------------

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

Watson Bug ID:	3148178

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related thread: http://prerelease.adobe.com/r/?b8a2764e2268420fa3e71bd54de20017
Comment by External U.
19989 | March 24, 2012 05:56:43 AM GMT
Regarding index.cfm, use the following instead. It shows the issue more clearly (don't set mySessionVar on the action page): <cfif structKeyExists(FORM, "filename")> <cffile action="uploadall" destination="#expandPath('.')#" nameconflict="overwrite"> <cfset APPLICATION.uploadInfo = {url=duplicate(URL), session=duplicate(SESSION)} /> <cfelse> <cfset SESSION.mySessionVar = "my_session_var_value" /><!--- Don't set var on action page ---> </cfif> <cffileupload /> <cfdump var="#SESSION#" /> <cfdump var="#APPLICATION#" />
Comment by External U.
19990 | March 24, 2012 06:48:01 AM GMT
Turn "Use J2EE Session Variables" ON to observe incorrect behaviour (Comment added from ex-user id:vnigam)
Comment by Adobe D.
19991 | March 26, 2012 04:50:30 AM GMT
Findings : In CF10,sessionid works fine only for IE9.Issue still observed in Chrome,Firefox,Safari. (Comment added from ex-user id:vnigam)
Comment by Adobe D.
19992 | March 28, 2012 06:55:01 AM GMT
We have around 40 sites running CF9 and some now on CF10. These sites use the cffileupload multi file uploader and we also use j2ee session handling so it is limiting our uptake of CF10 because this feature is broken.
Vote by External U.
19996 | November 29, 2012 10:06:33 AM GMT
The status of this bug says it was fixed in build 283287, yet I am running build 283319 (CF 10, update 5) and it is still broken.
Comment by External U.
19993 | November 29, 2012 10:09:32 AM GMT
I'm running CF10 update 8 and this is still broken.
Comment by External U.
19994 | March 25, 2013 08:03:31 AM GMT
cffileupload is broken in the admin area where session state must be maintained for logged in users.
Vote by External U.
19997 | March 25, 2013 08:04:22 AM GMT
This fix has not been released yet , this will be part of the next update to be released.
Comment by Asha K.
19995 | June 04, 2013 04:32:55 AM GMT