You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/05/08 02:51:21 UTC

[GitHub] [servicecomb-java-chassis] johnyannj opened a new issue #1201: ServerRestArgsFilter可能提前返回响应,导致后面的Filter无效

johnyannj opened a new issue #1201: ServerRestArgsFilter可能提前返回响应,导致后面的Filter无效
URL: https://github.com/apache/servicecomb-java-chassis/issues/1201
 
 
   问题描述:
   
   org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter#beforeSendResponseAsync
   
   当Object body = response.getResult();是Part类型的时候,导致响应提前返回,
   
   从而后面的Filter滞后执行,而导致可能的错误。(比如增加Header的逻辑,就没有用了)
   
   ```
   if (Part.class.isInstance(body)) {
               return responseEx.sendPart((Part)body);
           }
   ```
   
   
   
   

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


With regards,
Apache Git Services