Fix type error when the file_name is not set
What does this MR do and why?
Contributes to #457524 (closed)
Sentry error: https://new-sentry.gitlab.net/organizations/gitlab/issues/38519/
Problem
TypeError
exception is raised when file_name
parameter is missing.
Solution
Validate that the parameter is present. Return an validation error to the user.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin