Race condition in accessing component static member throws error

Description

While two requests are trying to access the component static member at the same time, The first request was to initialize the component static scope. But the second request uses static scope before the first request to complete the initialization. It throws an error like Component from type [test.testcases.LDEV2932.test] has no accessible static Member with name [TYPE_ENCRYPTION_FILE]. Seems ACF locks the second request until the first request completes the initialization.

Related mailing list: https://dev.lucee.org/t/lucee-looses-static-members-of-component/8321

Environment

None

Activity

Show:

Zac Spitzer 20 January 2022 at 17:02

alas, this is still happening with 5.3.8.211

Michael Offner 17 January 2022 at 14:05

no further issue reported with this, set to resolved

Michael Offner 17 January 2022 at 14:04

all changes in 5.3 still get merged into 6.0, so this will come to 6.0 sooner or later.

Fixed

Details

Assignee

Reporter

Priority

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

Sprint

Affects versions

Created 13 December 2021 at 12:14
Updated 8 May 2023 at 13:20
Resolved 17 January 2022 at 14:05