confusing rest error "Subresource locator error" when missing httpmethod on function

Description

returns applicationName

but if the httpmethod="GET" is left out

Subresource locator error is returned, which is confusing

Environment

None

Activity

Show:

Zac Spitzer 10 February 2025 at 15:20
Edited

I’ve put together some extended rest tests, can only be run via a browser for now

I have disabled some of the tests which expect a wrong method, rather than just the generic no rest service for [/ldev5324/Name/] found

We should be returning more informative messages, but the current resolver logic might need refactoring to support this

what are your thoughts on the sub resource conditions, I think it should only be invoked when the returnType is a component and there’s no http method?

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 10 February 2025 at 12:24
Updated 10 February 2025 at 15:52