プロジェクト

全般

プロフィール

Vote #66624

完了

Deselecting textile text formatting causes interning empty string errors

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Text formatting_26
対象バージョン:
開始日:
2010/02/17
期日:
進捗率:

0%

予定工数:
category_id:
26
version_id:
17
issue_org_id:
4867
author_id:
12298
assigned_to_id:
0
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
16
ステータス-->[Closed]

説明

If an admin choses no text formatting ('none') instead of the default 'textile' then there are no entries in @@formatters in lib/redmine/wiki_formatting.rb. Therefor when formatter_for(name) is called name is blank and to_sym raises an error as it can't create a symbol of an empty string.

A sample backtrace is:

Processing WelcomeController#index (for 192.168.100.218 at 2010-02-17 11:12:32) [GET]
  Parameters: {"action"=>"index", "controller"=>"welcome"}
Rendering template within layouts/base
Rendering welcome/index

ActionView::TemplateError (interning empty string) on line !#10 of app/views/layouts/base.rhtml:
7: 
8: <%= stylesheet_link_tag 'application', :media => 'all' %>
9: <%= javascript_include_tag :defaults %>
10: <%= heads_for_wiki_formatter %>
11: