LoginSignup
4
0

More than 5 years have passed since last update.

gitlabでwikiを編集したときに500エラーになる問題を修正する

Posted at

修正方法

gitlab-rails/lib/gitlab/encoding_helper.rb を修正する。

encoding_helper.rb
    def binary_stringio(str)
      #StringIO.new(str || '').tap { |io| io.set_encoding(Encoding::ASCII_8BIT) }
      StringIO.new(str.freeze || '').tap { |io| io.set_encoding(Encoding::ASCII_8BIT) }
    end

変更の適用

gitlab-ctl restart sidekiq
gitlab-ctl restart unicorn

参考

4
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0