Closed rodionbykov closed 3 years ago
I've had similar issues - it baffled me for a long time and ended up working around it. Hopefully this can get fixed sometime soon.
I believe I have a working fix for this. At least with initial testing. Just need to do a little more scenario testing and make sure all supported engines are still happy. Probably have a PR ready by the weekend.
It looks like this was fixed by #526 so this issue should be closed. Am I right?
I ran into this problem on Lucee 5.4.4.38 and fw/1 4.3. The Lucee setting for modern local scope handling didn't seem to have any impact on it. I resolved it by modifying the doController() method and adding a call to restoreFlashContext() right before the controller method is invoked.
In function getNextPreserveKeyAndPurgeOld() variables nextPreserveKey and oldKeyToPurge will not be set if Lucee has 'Local Scope Mode' set to 'Modern'. In this case variables will be created inside closure Local scope, instead of caller function Local scope. This causes &fw1pk not be passed in URL and 'preserved' variables lost.