Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubboVersion为"2.8.4a" 可以使用该库解析吗? #311

Closed
miracle-xiang opened this issue Mar 14, 2022 · 7 comments
Closed

dubboVersion为"2.8.4a" 可以使用该库解析吗? #311

miracle-xiang opened this issue Mar 14, 2022 · 7 comments

Comments

@miracle-xiang
Copy link

miracle-xiang commented Mar 14, 2022

What would you like to be added:

Why is this needed:

  • 目前发现个情况,codecR.ReadBody-argsTypes 类型推断为int32, 但是在解析该字段时,强行按照string进行了类型推断。

  • 导致 panic[panic:interface conversion: interface {} is int32, not string [recovered] panic: interface conversion: interface {} is int32, not string]

  • 值类型判断

  • 值的解析

@wongoo
Copy link
Contributor

wongoo commented Mar 16, 2022

@miracle-xiang pls provide more details, like golang struct definition, java object definition, your unit test, etc..

@wongoo
Copy link
Contributor

wongoo commented Mar 17, 2022

@miracle-xiang there is an example that decoding data from java, u can create a new unit test:

@miracle-xiang
Copy link
Author

您好, 麻烦您帮忙看下, 我的UT和PCAP。 dubbo-go-hessian2 tag v1.11.0

Downloads.zip

我想参照codecR.ReadBody来解析body
https://github.com/apache/dubbo-go-hessian2/blob/master/hessian_test.go#L177

不使用java解码可以么?

@wongoo
Copy link
Contributor

wongoo commented Mar 28, 2022

@miracle-xiang the dubbo version 2.8.4a seems not the official version, the protocol is incompatible. https://github.com/wongoo/dubbo-go-test/blob/cc71636a7b6678833271243b60ecbdada4521d3f/hessian_issue311/parse_dubbo_test.go#L43

@AlexStocks
Copy link
Contributor

The dubbo version v2.8.4a belongs to dubbox which was maintained by DangDang before 2018. And then it was merged into dubbo 2.6. Now it has been out of date.

@AlexStocks
Copy link
Contributor

@wongoo can we close this issue?

@wongoo
Copy link
Contributor

wongoo commented Apr 19, 2022

@miracle-xiang I will close this issue,u can open a new issue if having other questions.

@wongoo wongoo closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants