On 4/30/2018 11:27 AM, Lukasz Lenart wrote:
> The problem is that we should support existing configurations (like
> automatically define allowed methods for those used in struts.xml).

Sorry, I didn't get again :( AFAIK defined actions with any defined
method in struts.xml are callable. However, in this issue, convention is
used and struts.xml doesn't have any defined action. Did you mean
convention's @action annotation doesn't work with rest i.e. does not
automatically define allowed methods with that annotation?

> The same should happen with the REST plugin but the problem is that i
> tries to guess the method name based on url. I do not see a good
> solution for now.

AFAIK it doesn't guess. It sees if url has a defined method
(action/param/method) elsewhere use defined method according to GET,
PUT, DELETE, POST or etc. right? Did you mean rest+convention plugin
isn't able to call method1 when url is action1/param1/method1?

Elsewhere of above, then I think this issue/thread can be concluded as
"bug: SMI cannot being disabled by user when rest+convention used" i.e.
like https://issues.apache.org/jira/browse/WW-4930.

Regards.

Reply via email to