Skip to content

Resolve "[Rails5] expected the response to have status code :ok but it was 404"

What does this MR do?

Since Rails 5 request.format gets set by extension if it's not explicitly set.
That means artifacts_controller#file no longer works as expected.
This MR explicitly sets request.format for artifacts_controller#file.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Migration to Rails 5.0.

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #48008 (closed)

Edited by Rémy Coutable

Merge request reports