Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 425

6.2.0.164-RC - REST Endpoint creation fails

$
0
0

OS: Ubuntu/Docker official Lucee Release
Lucee Version: 6.2.0.164-RC

When deploying an app via the official Lucee Docker container, the REST endpoints occasionally fail on a fresh deployment.

Code:
[Application.cfc / onApplicationStart()]
RestInitApplication(dirpath=expandPath('./rest'), serviceMapping='admin-config', default=false, password="admin-password");

[rest/ext.cfc]

component restpath="/ext" rest="true"
{

    remote function getAppExtList() httpMethod="GET"
    {
        return "Hello!";
     }
}

Postman Call to https://localhost/rest/admin-config/ext/ Method=GET
no rest service for [/admin-config/ext/] found

This setup works when running on the lucee/lucee:5.4 docker image. Anything beyond 6.0 seems to cause it to break.

If I log into the Lucee Server Admin, I see that the REST endpoints were not created. If I switch to multi-mode or futz around with some of the settings, then the REST endpoints can be created programmatically. It seems that once a single REST endpoint is showing up in the Server admin, they work as expected (switching from multi-mode to single mode works again). Restarting the container with a fresh build/deployment causes the issue to pop up again.

I haven’t opened a ticket yet – not sure if it is related to the multi-server issue with REST endpoints – since it looks like that one got closed a long while ago (but can’t track down if that bug fix was included in the RC).

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 425

Trending Articles