Skip to content

Show correct error message when Job is in debug mode

  • Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA

What does this MR do and why?

This MR fixes which error is shown when the reading of a job log is not permitted. The current error will be shown when debug is disabled and the other one when debug is enabled.

Closes #351607.

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
Bild grafik

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Set the CI_DEBUG_TRACE variable to true
  2. Execute a pipeline
  3. Impersonate a user with Auditor role which has no access to the group/project
  4. Check that you get the correct error message
Edited by Kevin-Damian Gosa

Merge request reports