Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

ciao-controller should use checked type assertions #1528

Open
@markdryan

Description

@markdryan

There are a number of places in api/api.go where ciao-controller is used non-checked type assertions to convert data received from a client into some other type, usually a map[string]interface{}.

There's no guarantee that this conversion will work, if for example the client sends a json document containing a single int. In this case ciao-controller will panic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions