kitex-contrib / codec-dubbo

支持 kitex <-> dubbo 互通的 dubbo 协议编解码器。
Apache License 2.0
16 stars 14 forks source link

[P1] Can not decode nil field in response #59

Closed felix021 closed 9 months ago

felix021 commented 10 months ago

If the dubbo-java server returns a response with some field (e.g. of type String) not set (=null), kitex client will fail to decode.

We need to sort out the cases:

  1. Basic types defined as required/optional in IDL
  2. Composite types defined as requirede/optional in IDL
  3. Value assigned as null in the request, is it ok to be decoded by the server?
  4. Value assigned as null in the response, is it ok to be decoded by the client?

There might be some cases which is not correctly processed by Kitex.

After fixing issues and sorting out these cases, we can provide a more specific document to the user.

felix021 commented 9 months ago

Fixed in #70 , except for the usage of java wrapper class as request arguements or response (#69 )