shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

buildparameter forget add paramNameList

Open Ting97 opened this issue 5 years ago • 3 comments

Describe the bug

When the parameter is one and the type starts with “java”, 500 will be reported image

When i debug, i find this medthod has problem org.apache.shenyu.plugin.api.utils.BodyParamUtils#buildParameters

we can see paramNameList.size() = 0, it cause param's value is null image image

add some code in org.apache.shenyu.plugin.api.utils.BodyParamUtils#buildParameters can fix it

image

Ting97 avatar May 13 '21 12:05 Ting97

Thanks for reporting this Can you fix it? Or I will fix it in the upcoming pr

ttttangzhen avatar May 13 '21 13:05 ttttangzhen

Thanks for reporting this Can you fix it? Or I will fix it in the upcoming pr

I can fix it today, and I will pr, ok?

Ting97 avatar May 13 '21 13:05 Ting97

Thanks for reporting this Can you fix it? Or I will fix it in the upcoming pr

I can fix it today, and I will pr, ok?

Ok 😁

ttttangzhen avatar May 13 '21 13:05 ttttangzhen