[
https://issues.apache.org/jira/browse/CXF-7335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Colm O hEigeartaigh resolved CXF-7335.
--------------------------------------
Resolution: Cannot Reproduce
> Apache CXF inteceptor doesn't get called on empty response
> ----------------------------------------------------------
>
> Key: CXF-7335
> URL: https://issues.apache.org/jira/browse/CXF-7335
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 3.1.5
> Reporter: Aleksandr Erokhin
> Priority: Minor
>
> I was using some custom implementation of the Apache CXF logging interceptor
> for http request-response logging when came across the issue when my logging
> interceptor wasn't called on http responses with an empty body (just the
> status code).
> I've investigated the issue and discovered the following in the
> HTTPConduit.handleResponseInternal():
> {code}
> in = this.getPartialResponse();
> if(in == null || !MessageUtils.getContextualBoolean(this.outMessage,
> "org.apache.cxf.transport.processOneWayResponse", false)) {
> ...
> return;
> }
> ...
> HTTPConduit.this.incomingObserver.onMessage(inMessage);
> {code}
> The call to the HTTPConduit.this.incomingObserver.onMessage(inMessage) is the
> actual response handling that takes care of interceptors and stuff. And from
> this point of view it seems like there is no way to have them called in case
> of empty response body (when this.getPartialResponse() is null).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)