Issues

Select view

Select search mode

 

Lucee is firing onRequesStart BEFORE onApplicationStart, breaking coldbox.

Description

This only happens if you use cbORM in coldbox and the cborm event handler.
The cborm event handler is inherited from the coldbox proxy. Coldbox proxy is trying to access the application scope in the pseudo constructor before onApplicationStart is fired. Accessing application scope here makes Lucee fire onRequeststart before onApplicationStart.
The whole proces is described in detail here:
https://shiftinsert.nl/cborm-event-handling-tracking-some-lucee-problems/

Environment

None

relates to

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

Created 22 February 2022 at 18:28
Updated 2 July 2024 at 22:14

Activity

Show:

Pothys - MitrahSoft5 August 2022 at 15:09

Due to the conflict, I created a new PR: https://github.com/lucee/Lucee/pull/1750

Pothys - MitrahSoft22 March 2022 at 15:12

I've checked this ticket and confirmed the issue happened on the lucee latest version 5.3.8.115-SNAPSHOT. Using application scope in the ORM event handler component or the component which is in the same directory means onApplicationStart() was not trigger but directly triggers onSessionStart() and onRequesStart() before the onApplicationStart().

I added a testcase to this ticket
Pull Request: https://github.com/lucee/Lucee/pull/1605

Flag notifications