Yaml Parser is throwing a 500 internal server errors
Description
For some cases, YAML parser was returning a 500 Internal Server Error
for some devfiles.
Main discussion is at !198236 (comment 2658064914)
safe_load
is either returning String or Hash and the line below we call to_h
method immediately which is only accessible through hash objects without making sure that devfile is hash. as it could be string or nil too. So we need to assert that devfile is hash before calling this method.
Current
Edited by 🤖 GitLab Bot 🤖