Actions
Defect #16881
closedGit: repository page crashes when non-ascii character in tag or branch name
Defect #16881:
Git: repository page crashes when non-ascii character in tag or branch name
Resolution:
Fixed
Affected version:
Description
If tag or branch name in git contains non-ascii character(ex."あ","い",etc.), Repository page crashes with the following messages in the production.log:
Started GET "/redmine/projects/XXX-000000/repository/git" for 127.0.0.1 at 2014-05-13 09:04:03 +0900
Processing by RepositoriesController#show as HTML
Parameters: {"id"=>"XXX-000000", "repository_id"=>"git"}
Current user: YYYYY (id=6)
Rendered repositories/_navigation.html.erb (93.8ms)
Rendered repositories/show.html.erb within layouts/base (93.8ms)
Completed 500 Internal Server Error in 812.5ms
ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT):
app/views/repositories/_navigation.html.erb:24:in `block in _app_views_repositories__navigation_html_erb__875303464_30435480'
app/views/repositories/_navigation.html.erb:13:in `_app_views_repositories__navigation_html_erb__875303464_30435480'
app/views/repositories/show.html.erb:4:in `_app_views_repositories_show_html_erb___1026796241_22987116'
app/controllers/repositories_controller.rb:125:in `show'
Atatched patch fixed the problem for me, but I'm not sure if it is a correct solution.
Files
Actions