Skip to content

[monitor, theia] monitor service incorrectly responds with 200 if the request body is malformed #431

@kittaakos

Description

@kittaakos

Describe the bug

The response ends earlier before setting the 400 status code:

res.end("Body missing 'level' or 'message' fields");
res.status(400);

Expected behavior

POST /monitor/message responds with 400 if the request body is invalid

Cluster provider

No response

Version

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions