Using getOrSet() throw an error
Closed this issue · 2 comments
CaptainPalapa commented
What are the steps to reproduce this issue?
- … Instantiate with
- … Attempt to use getOrSet()
<cfset variables.cs = getInstance( 'cookieStorage@cbstorages' ) /> <cfdump var='#variables.cs.getOrSet( 'sdData', { "name": "", "choices": {} } )#' />
What happens?
Error is thrown,
What were you expecting to happen?
Not an error.
Any other comments?
It appears that the problem is that variables.lockname is not defined. There is no reference to "lockname" anywhere in the file nor in the implemented file. I'm guessing there aren't any test cases that support this feature?
\modules\cbstorages\models\AbstractStorage.cfc
What versions are you using?
Operating System: WIndows 11, Lucee 6.01+, Commandbox 6.0.0+00787
Package Version: 3.01 Snapshot
lmajano commented
Fixed on 3.1.0
CaptainPalapa commented
Sorry for not adding anything about the module or file in the subject.