Issues

Select view

Select search mode

 

CGIReadOnly is always true (in application.cfm apps)

Fixed

Description

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:

Causes the error: can't set key [foo] to struct, struct is readonly

Workaround
Explicitly set the value in the application.cfm.

Environment

None

relates to

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

Created 25 January 2022 at 20:47
Updated 14 March 2025 at 12:21
Resolved 14 March 2025 at 12:21

Activity

Show:

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

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?

Zac Spitzer7 February 2022 at 01:01
Edited

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

Zac Spitzer6 February 2022 at 23:55

Flag notifications