Skip to content

Validate confirmed Parameter in Person API #18957

@rubhanazeem

Description

@rubhanazeem

The Person API PersonController#show accepts a query parameter confirmed. However, the code does not validate the type or value of this parameter, it only checks for its presence. We should restrict this parameter to accept only the allowed values.

https://github.com/openSUSE/open-build-service/blob/master/src/api/app/controllers/person_controller.rb#L19

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIThings regarding our APIBugDocumentation 📖Things regarding our documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions