Issues
CGIReadOnly is always true (in application.cfm apps)
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Walter SeethalerWalter SeethalerPriority
NewFix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Reporter
Priority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Activity
Pothys - MitrahSoft14 March 2025 at 12:20
I have tested this ticket with Lucee version 6.2.1.67-SNAPSHOT. When I tried to write the new key to CGI after setting <cfapplication cgiReadOnly="false" name="ldev-3841-cfm">
, it was updated successfully and works fine.
Zac Spitzer12 March 2025 at 06:53
https://github.com/lucee/Lucee/commit/33f18724a5b07481060e1968514232f44ab15b97
It doesn’t work in the application.cfc
constructor, unless set via the admin / CFconfig.json
Zac Spitzer11 March 2025 at 08:16
this was just raised on the mailing list
I refactored the test, seems ok to me? @Pothys - MitrahSoft
https://github.com/lucee/Lucee/commit/5b9f6185c8ea42ae8b7a4a8a2ef5db7358c71002
Zac Spitzer7 February 2022 at 01:01Edited
this always works on windows, but could be the test order on GHA, it’s a bit random in 5.3 on linux
anyway, time to revert https://github.com/lucee/Lucee/pull/1561
CGIReadOnly always true (Admin setting disregarded in application.cfm apps)
The Lucee Server/Web Administrator setting CGIReadOnly (Settings / Scope / CGI read only) is not properly inherited to applications using an Application.cfm, it is always true: getApplicationSettings().cgiReadOnly. As a result, all CGI writes causing the error: can't set key [foo] to struct, struct is readonly
Reproduce
Set CGI read only to Writable and call this Application.cfm:
<cfapplication name="foobar"> <cfdump var="#getApplicationSettings().cgiReadOnly#"> <cfparam name="CGI.foo" default="xyz">
Causes the error: can't set key [foo] to struct, struct is readonly
Workaround
Explicitly set the value in the application.cfm.
<cfapplication cgiReadOnly="false" ... >