You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/01/29 09:51:00 UTC

[jira] [Commented] (OFBIZ-11332) Change 'restMethod' by '_method' in request parameters

    [ https://issues.apache.org/jira/browse/OFBIZ-11332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17025756#comment-17025756 ] 

ASF subversion and git services commented on OFBIZ-11332:
---------------------------------------------------------

Commit 11cf350302015d1210b9f663cb9c68339701a3f8 in ofbiz-framework's branch refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=11cf350 ]

Improved: Change 'restMethod' by '_method' in request parameters
(OFBIZ-11332)

When we analyse a request method, we currently check the parameter "restMethod".
Mathieu Lirzin propose [1] to use "_method" instead to use a parameter name more generic

I create a new function UtilHttp.getRequestMethod() to centralize the request method resolution.

[1] https://issues.apache.org/jira/browse/OFBIZ-11007?focusedCommentId=17012712&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17012712


> Change 'restMethod' by '_method' in request parameters
> ------------------------------------------------------
>
>                 Key: OFBIZ-11332
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11332
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>
> Currently when you check a request method from a call that unsupport to set  the method, we scan the parameter named "restMethod" on the request.
> As suggest [~mthl] [here|https://issues.apache.org/jira/browse/OFBIZ-11007?focusedCommentId=17012712&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17012712], it's more interresting to change it by "_method"
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)