Does Lucee support "onRestRequest" in the Applicat...
# lucee
b
Does Lucee support "onRestRequest" in the Application.cfc?
a
What happened when you... like... tried it? Did it work? If so: yes, they support it. If not, then... no, they don't.
I do not see any mention of it in Lucee's docs (although that doesn't necessarily mean anything). And Google ain't got anything relevant either (searched for "lucee onrestrequest"
Seems odd there's nowt in Jira for it either though.
b
a
Well that answers that question 😉
b
Thank you all.. Yes, I know, I should have used my google-foo, but I was fresh out of it. 😛
And also, that sucks a little bit... we are trying to port our applicatin to lucee cf from adobe cf, and are relying on that listener.
It even looks like that rest requests are not picked up by any of the application listeners! How can one intercept rest requests to add, for example, login validation and security checks?
a
So is Lucee as rubbish as CF is in that it doesn't fire
onRequest
when a REST request comes in?
Oh wow that sux
That said, I was thinking about this before. I've never used CF's REST system. Why does one actually need to service REST reqs in a special way?
They're just... well... requests. What's the difference between
/some/webpage/path
and
/some/restrequest/path
?
b
we do some pre processing to check the incoming jwt token.
a
yeah sure, sorry, I have digressed slightly.
b
ah right 😉
a
I don't doubt what you need to do. I am wondering why the CFML server has this special mechanism to deal with REST reqs? How are they different from any other sort of request?
b
normal requests in lucee fire the onRequestStart, onRequest and onRequestEnd cfc requests fire onRequestStart, onCFCRequest and onRequestEnd rest requests fire NO onRequest handlers at all
😞
a
yeah sorry. Maybe I should start a different thread.