Chris Ribble created CAMEL-12575:

             Summary: camel-cxfrs: NPE on GET request with Content-Type header
                 Key: CAMEL-12575
             Project: Camel
          Issue Type: Bug
          Components: camel-cxfrs
    Affects Versions: 2.21.1
            Reporter: Chris Ribble

This commit  
 modified DefaultCxfRsBinding.populateCxfRsResponseFromExchange in a way that 
causes an NPE on line #116 when a GET request is made with the Content-Type 
header set (which is copied into the response).

I can work around this by asking clients not to send the Content-Type header 
(which is generally meaningless for a GET) and/or by adding header filtering 
before the endpoint is executed, but ideally this code would not call 
cxfExchange.getOutMessage().putIfAbsent if getOutMessage returns null so that 
the NPE would not be triggered.

This message was sent by Atlassian JIRA

Reply via email to