Skip to content

BasicAuth sends "undefined" as password #111

@Qowevisa

Description

@Qowevisa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions