Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #11757] API: Missing error handling for invalid JSON request body #4202

Closed
icinga-migration opened this issue May 10, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented May 10, 2016

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11757

Created by mfriedrich on 2016-05-10 13:12:58 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2016-05-10 13:20:03 +00:00)
Target Version: 2.4.8
Last Update: 2016-05-10 13:20:03 +00:00 (in Redmine)

Icinga Version: 2.4.7
Backport?: Not yet backported
Include in Changelog: 1

Right now this causes a plain-text exception message.

Example for a check command with an invalid json body.

{
  "templates": [
    "plugin-check-command"
  ]
  "attrs": {
    "command": [
      "/bin/echo"
    ]
  }
}

i2_api_invalid_json.png

Attachments

Changesets

2016-05-10 13:16:35 +00:00 by mfriedrich 9a88185

API: Fix error handling for invalid JSON request body

fixes #11757

2016-05-12 09:09:49 +00:00 by mfriedrich 7f915db

API: Fix error handling for invalid JSON request body

fixes #11757
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented May 10, 2016

Updated by mfriedrich on 2016-05-10 13:20:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 9a88185.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.