regression: rest isn't picking up the parent application scope

Description

Trying to run the update provider with 6.2.0.317

https://github.com/lucee/lucee-data-provider/blob/main/apps/updateserver/rest/ExtensionProvider.cfc

https://github.com/lucee/lucee-data-provider/blob/main/apps/updateserver/rest/UpdateProvider.cfc

aren’t getting the application scope and required services from the Application.cfc in the parent directory

https://github.com/lucee/lucee-data-provider/blob/main/apps/updateserver/Application.cfc

CFconfig.json has the following directive

"listenerMode": "curr2root", "listenerType": "modern"

this works with 6.0.4.10 & 6.1.1.118

REPO check out branch https://github.com/lucee/lucee-data-provider/tree/lucee-6.2

run docker compose up --build

I’ve added a check of the application name in both rest providers which logs out to console

Environment

None

Attachments

2
  • 10 Feb 2025, 12:34 pm
  • 10 Feb 2025, 12:34 pm

Activity

Show:

Zac Spitzer 24 February 2025 at 09:48

ok, solved by extending the parent application cfc into a proxy in the rest component dir

https://github.com/lucee/lucee-data-provider/commit/20c4ac6689cec2490d9ddd3e532200a4e46425e4

Michael Offner 20 February 2025 at 15:54

this is not a bug, previous version did search for the Application.cfc outside the rest mapping, what is not correct, in your example it did use an Application.cfc that is outside the rest folder, even that folder is the root.

YOu need to set the Application.cfc within the mapping.

Zac Spitzer 10 February 2025 at 12:34
Edited

Can’t test this via internal request https://luceeserver.atlassian.net/browse/LDEV-4689 , so the test case needs to be run via http

https://github.com/lucee/Lucee/commit/d28dc3216f373b90800ec65f707680f091f8c1fd (also added a toString() method to the rest mapping class)

With 6.2.1.4

image-20250210-122639.png

with 6.2.0.283 and 6.1.1.118

image-20250210-123035.png

which is better, but the first test case isn’t picking up the Application.cfc in the same directory?

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

Created 10 February 2025 at 10:20
Updated 24 February 2025 at 09:48
Resolved 20 February 2025 at 15:54

Flag notifications