fix/14351 : remove string cast for resource on format detection

Merge request reports