Can't show CI Jobs with different encoding: ActionView::Template::Error: can't modify frozen String
https://sentry.gitlap.com/gitlab/devgitlaborg/issues/461862/
RuntimeError: can't modify frozen String
html/tokenizer.rb:26:in `encode!'
text.encode!
html/tokenizer.rb:26:in `initialize'
text.encode!
html/sanitizer.rb:19:in `new'
tokenizer = HTML::Tokenizer.new(text)
html/sanitizer.rb:19:in `tokenize'
tokenizer = HTML::Tokenizer.new(text)
html/sanitizer.rb:150:in `tokenize'
super
...
(179 additional frame(s) were not displayed)
ActionView::Template::Error: can't modify frozen String
ActionView::Template::Error: can't modify frozen String
This looks to be related with the # frozen_string_literal: true
we shouldn't freeze this type of content or we need to .dup
it before encoding
Check: https://dev.gitlab.org/gitlab/omnibus-gitlab/-/jobs/255975
to have a crashing example
Edited by Gabriel Mazetto