yhs0092 opened a new issue, #3865:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3865

   ## 问题原因
   
   Java-Chassis 在 2.x 分支修改了`RestCodec`的逻辑, 1.x分支统一捕获所有Exception类型异常, 
并在转换错误响应时添加接口、参数、参数处理器信息. 而2.x分支区分捕获`InvocationException`异常和其他的`Exception`异常, 
其中`InvocationException`直接抛出, 只有其他的`Exception`异常才会附加错误接口信息. 
而参数必填项检查刚好是在`ParamProcessor`内部做的, 报错抛出的是`InvocationException`, 因此绕过了附加接口信息的逻辑.
   
   差异点在`org.apache.servicecomb.common.rest.codec.RestCodec#restToArgs`方法中.
   
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to