Ticket #70 (closed defect: fixed)
fwreinit flag fails when its not boolean, addition of password for the init action.
| Reported by: | lmajano | Owned by: | lmajano |
|---|---|---|---|
| Priority: | high | Milestone: | 2.0.0 |
| Component: | Coldbox (cfc-cfm) (Front Controller) | Version: | 1.1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by lmajano) (diff)
The framework reinitialization flag needs to be passed as boolean or it fails. This will be resolved by just checking for the existance of the variable. If the variable fwreinit exists in the request, then the framework will re-initialize the application.
A suggestion was made wether to add a specific password in order to reinit the application. I am still evaluating, what would be the best course of action, since, if a password is used, it will be open to the public via the URL. The bottom line, is that the reinit, will not crash the application. Just make it take some extra cyles to reinit the app.
Affected Modules
Config.xsd
Addition of a new flag: reinitpassword
<Setting name="reinitpassword" value="" />
By default it will set it to blank.
coldbox.cfm
Addition of a new udf: fwreinitCheck returns boolean. It will verify the existence of the application vars. If not set already, then fw is initializing, return false. Else, check the set password and return result.
