Skip to content

Fix 500 on Changelog config

What does this MR do and why?

Problem

When the changelog config file is loaded using YAML.safe_load, any error returned is not handled thereby resulting in a 500 status from the caller.

Solution

Handle the YAML.safe_load exception and return a user friendly error message

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-06-20_at_16.35.12 Screenshot_2024-06-20_at_16.34.17

How to set up and validate locally

See reproduction steps in issue: #390125 (closed)

Related to #390125 (closed)

Edited by Olaoluwa Oluro

Merge request reports

Loading