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

Colm O hEigeartaigh commented on CXF-7448:
------------------------------------------

This is the error I see (JDK 1.8.0_141):

Tests run: 218, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 34.916 sec 
<<< FAILURE! - in org.apache.cxf.systest.jaxrs.JAXRSClientServerBookTest
testRetrieveBookCustomMethodReflection(org.apache.cxf.systest.jaxrs.JAXRSClientServerBookTest)
  Time elapsed: 0.017 sec  <<< FAILURE!
java.lang.AssertionError: HTTPUrlConnection does not support custom verbs 
without the reflection
        at org.junit.Assert.fail(Assert.java:88)
        at 
org.apache.cxf.systest.jaxrs.JAXRSClientServerBookTest.testRetrieveBookCustomMethodReflection(JAXRSClientServerBookTest.java:102)

Results :
Failed tests: 
  
JAXRSClientServerBookTest.testRetrieveBookCustomMethodReflection:102->Assert.fail:88
 HTTPUrlConnection does not support custom verbs without the reflection


> 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)

Reply via email to