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

icinga2: Check errors in HTTP status and JSON #208

Merged
merged 1 commit into from
Jun 3, 2024

Commits on Jun 3, 2024

  1. icinga2: Check errors in HTTP status and JSON

    The Icinga 2 Event Stream connection did not validate the HTTP status
    code returned by the server. Consequently, HTTP errors were not
    identified and their error messages were incorrectly interpreted as
    valid messages. This occurred in two places: firstly, with regard to the
    HTTP status code, and secondly, in relation to the error field, which
    may be present within a JSON struct.
    
    This modification introduces a brief HTTP status validation method that
    adheres to the specifications outlined in the Icinga 2 API documentation
    and advanced error checks in UnmarshalEventStreamResponse.
    oxzi committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    784b9b3 View commit details
    Browse the repository at this point in the history