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

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

WhiteCat22 commented on issue #390: [CXF-7676] Create a proxy OutputStream to 
create an EntityStream that…
URL: https://github.com/apache/cxf/pull/390#issuecomment-372461490
 
 
   Currently creating a systest, will add before merge

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> TCK: An Entity OutputStream is not set before 
> ClientRequestFilterInterceptor.handleMessage()  processes a user's 
> ClientRequestFilter which modifies the EntityStream via 
> ClientRequestContext.setEntityStream()
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7676
>                 URL: https://issues.apache.org/jira/browse/CXF-7676
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>         Environment: all versions, any environment
>            Reporter: Adam Anderson
>            Priority: Major
>             Fix For: 3.2.3
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> CXF is failing a test in both the JAXRS 2.0 and 2.1 TCKs where a user creates 
> a ClientRequestFilter which wraps the EntityStream in the filter() method via 
> ClientRequestContext.setEntityStream().
> CXF uses Phases to order the interceptors in the PhaseInterceptorChain. 
> [http://cxf.apache.org/docs/interceptors.html]
> A customer's client filter code gets executed in 
> ClientRequestFilterInterceptor.handleMessage() during the PRE_LOGICAL phase 
> of the outgoing chain.
> We don't actually create the entity output stream until HTTPConduit.prepare() 
> which is called by MessageSenderInterceptor.handleMessage() during the 
> PREPARE_SEND phase of the outgoing chain.
> As a result, any interaction/modification of the entity stream by the user 
> gets overwritten.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to