Error in AbstractFlashScope: key does't exists due to race conditions

Description

coldbox\system\web\flash\AbstractFlashScope.cfc:

MESSAGE: key [NAME] doesn't exist (existing keysostalcode)

88: for(x=1; x lte scopeKeysLen; x++){
89: // check if purging and remove
90: if( structKeyExists(scope, scopeKeys[x]) AND scope[ scopeKeys[x] ].autoPurge ){
91: structDelete(scope, scopeKeys[x]);
92: }

In most cases it happens where multiple ajax request are started simultaneously. Maybe some locking needs to be employed to ensure only one thread does the purge at a time.

Assignee

Luis Majano

Reporter

Jamie Salvatori

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure