shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] Is possible to get wrong parameter order when call http to dubbo rpc invoke

Open lossend opened this issue 3 years ago • 8 comments

Question

the default dubbo param build function is following: image

Is possible to get wrong parameter order when gson deserialize the json?or keySet return unsorted set

lossend avatar Sep 01 '22 09:09 lossend

Dubbo invoke doesn't care about the order of parameters.

KevinClair avatar Sep 01 '22 13:09 KevinClair

Dubbo invoke doesn't care about the order of parameters.

if paramTYpes is (int, int), also dont'care?

lossend avatar Sep 02 '22 04:09 lossend

Dubbo invoke doesn't care about the order of parameters.

if paramTYpes is (int, int), also dont'care?

Why not use java obejct?

KevinClair avatar Sep 02 '22 05:09 KevinClair

Dubbo invoke doesn't care about the order of parameters.

if paramTYpes is (int, int), also dont'care?

Why not use java obejct?

get resource with two id

lossend avatar Sep 02 '22 06:09 lossend

i mean replace two paramters with a java object.

KevinClair avatar Sep 02 '22 06:09 KevinClair

Dubbo invoke doesn't care about the order of parameters. you are wong, dubbo params must be ordered image

lossend avatar Sep 02 '22 09:09 lossend

the desgin should be refer to dubbo office doc: https://dubbo.apache.org/zh/docs3-v2/dubbo-go-pixiu/user/appendix/http-to-dubbo-default-stragety/#http-request

lossend avatar Sep 02 '22 10:09 lossend

I mean dubbo invoke doesn't care about the order of parameters if you replace two paramters with a java object.

KevinClair avatar Sep 04 '22 15:09 KevinClair