Issues with Environment Switching via url (wheels 4) #3023
Replies: 3 comments
|
👀 |
|
@mikegrogan — you're not missing anything. We verified all three of your symptoms against the code and reproduced them live (Lucee 7 as a control, Adobe 2023 for your engine class). Every one of them is a real bug, and your report was precise enough that each is now root-caused, tracked, and fixed (PRs #3036, #3037, #3038 — all CI-green). The breakdown: 1.
|
|
Good stuff. Thanks for reviewing! |
Uh oh!
There was an error while loading. Please reload this page.
I've been having issues in my environment with environment switching via URL. So I installed a stock
4.0.3on ACF 2025 latest patch and set a few parameters. Mainly in settings.cfm. Haven't had these issues in 2.5. I'm hoping I'm not missing something./config/environment.cfm
still has
set(environment = "development");/config/settings.cfm
set(allowEnvironmentSwitchViaUrl=true);set(reloadPassword = "password");I try to run this (when it's set to development) and nothing changes. Doesn't switch to testing.
http://localhost:11045?reload=testing&password=password
The only thing that works is changing the setting in environment.cfm and doing a
?reload=true&password=password, however in my last test it threw an error saying "Variable CFABORT is undefined." on the line below in dispatch.cfc. This is when I setset(environment = "testing");https://github.com/mikegrogan/cfwheels/blob/bd2d84ae8545c8fdb3edeb61be7ec0ed67421b06/vendor/wheels/Dispatch.cfc#L315
if I set it to maintenance or development it works.
If i set it to production and run ?reload=true&password=password
All reactions