swagger icon indicating copy to clipboard operation
swagger copied to clipboard

BasicAuth sends "undefined" as password

Open Qowevisa opened this issue 10 months ago • 0 comments

Hello! Using v2.52.6 fiber and v1.1.1 swagger

For some reason if user will not provide anything in the Password field of the BasicAuth password will be set to undefined which is converted into string "undefined" (I can not be sure as I tried to dig into the cause of problem but that was fruitless)

I created a small repo with all steps to reproduce this bug in README.md Here is the link: https://github.com/Qowevisa/fiber_swag_issue

If you want I can paste here the same exact code (68 lines of code) and instruction to reproduce bug. I thought already created repo with exact steps will be easier for you.

That "undefined is a real problem for us as we do not ask nor provide password for users of our API. So we need that nothing will be in that password part of the BasicAuth. I hope that this issue can be resolved and I provided enough clarity to get to the problem. Maybe there is some documentation field that I missed but I guess it is non desired behavioral

Qowevisa avatar Feb 24 '25 13:02 Qowevisa