You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/17 21:06:00 UTC

[jira] [Commented] (CXF-7448) Enable use of reflection in JAX-RS client by default

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

ASF GitHub Bot commented on CXF-7448:
-------------------------------------

GitHub user andymc12 opened a pull request:

    https://github.com/apache/cxf/pull/293

    [CXF-7448] Use reflection by default for HttpURLConnection request me…

    …thods

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andymc12/cxf 7448-reflectByDefault

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/293.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #293
    
----
commit 9831a8b636b862bcee419208f1c9693a6d57eae5
Author: Andy McCright <j....@gmail.com>
Date:   2017-07-17T21:03:56Z

    [CXF-7448] Use reflection by default for HttpURLConnection request methods

----


> Enable use of reflection in JAX-RS client by default
> ----------------------------------------------------
>
>                 Key: CXF-7448
>                 URL: https://issues.apache.org/jira/browse/CXF-7448
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.2.0
>            Reporter: Andy McCright
>             Fix For: 3.2.0
>
>
> Per discussion on the dev list, we should enable the use of reflection for "non-standard" HTTP methods in the JAX-RS client.  By default, the HttpURLConnection will only allow "standard" HTTP methods, such as GET, PUT, POST, DELETE, OPTIONS and HEAD.  It does not include PATCH or other user-defined methods and will throw an exception when a user attempts to use one of these methods.
> CXF already works around this issue by using reflection to set HTTP method when a system property or message property is set.  This bypasses the check and allows the method to process.  For CXF 3.2, I would like to make this property enabled by default, so that these "non-standard" HTTP methods will work by default.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)