Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-01-10T13:55:18ZRedmine
Redmine Redmine - Patch #4545 (Closed): Simplified Chinese language file zh.yml updated to r3303https://www.redmine.org/issues/45452010-01-10T13:55:18ZChaoqun ZouRedmine - Patch #4481 (Closed): Simplified Chinese language file zh.yml updated to r3236https://www.redmine.org/issues/44812009-12-24T15:58:17ZChaoqun ZouRedmine - Patch #4450 (Closed): Simplified Chinese language file zh.yml updated to r3191https://www.redmine.org/issues/44502009-12-19T03:39:54ZChaoqun ZouRedmine - Patch #4207 (Closed): Simplified Chinese language zh.yml updated to r3033https://www.redmine.org/issues/42072009-11-12T12:35:36ZChaoqun ZouRedmine - Patch #4171 (Closed): Simplified Chinese language file zh.yml updated to r3009https://www.redmine.org/issues/41712009-11-05T15:02:32ZChaoqun ZouRedmine - Patch #4016 (Closed): Simplified Chinese language file zh.yml updated to r2915https://www.redmine.org/issues/40162009-10-10T17:15:34ZChaoqun ZouRedmine - Defect #3557 (Closed): If views of different plugins have same filename, the view files...https://www.redmine.org/issues/35572009-06-29T08:16:44ZChaoqun Zou
<p>If two plugins have different views with the same filename, like 'settings/_settings.rhtml'. The two different views will conflict. The first view in the loading path will be always used in the two plugins.</p> Redmine - Patch #3409 (Closed): Simplified Chinese language zh.yml updated to r2761https://www.redmine.org/issues/34092009-05-23T22:55:25ZChaoqun Zou
<p>Add a missed string: setting_new_project_user_role_id</p> Redmine - Patch #3374 (Closed): Simplified Chinese language file zh.yml updated to r2753https://www.redmine.org/issues/33742009-05-17T14:26:50ZChaoqun ZouRedmine - Patch #3248 (Closed): Simplified Chinese language file zh.yml updated to r2697https://www.redmine.org/issues/32482009-04-27T13:08:49ZChaoqun ZouRedmine - Patch #3240 (Closed): Simplified Chinese language file zh.yml updated to r2688https://www.redmine.org/issues/32402009-04-25T04:09:03ZChaoqun ZouRedmine - Patch #3213 (Closed): Simplified Chinese language file zh.yml updated to r2678https://www.redmine.org/issues/32132009-04-21T15:33:28ZChaoqun ZouRedmine - Defect #3194 (Closed): Issue status in the notify email's subject is the issue's old st...https://www.redmine.org/issues/31942009-04-17T02:16:20ZChaoqun Zou
<p>If user change issue's stauts from new to closed, the notify email's subject is</p>
<pre><code>(New)Issue ......</code></pre>
<p>But I thought that the notify email is to inform the new status of issue, so it would be better to make the subject in above example to</p>
<pre><code>(Closed)Issue ....</code></pre> Redmine - Defect #3176 (Closed): Issue categories select-box is hided in new/update issue page wh...https://www.redmine.org/issues/31762009-04-15T08:20:52ZChaoqun Zou
<p>If a project has no issue categories, when add issue or edit issue, the issue categories select box is hided.</p> Redmine - Feature #3152 (Closed): Embed images in the notify emails instead of write a image link...https://www.redmine.org/issues/31522009-04-10T02:23:44ZChaoqun Zou
<p>Since the images of the non-public projects can't be showed without login, if user use email-client such as outlook, he can't perform a login action in that client. So if the notify email of a non-public project contains images, he will always see a red X in the image's position.</p>
<p>I thought that it would be better to embed the images in the emails, so user can always see the images in the mail-body even the email is from a non-public project.</p> Redmine - Feature #3143 (New): Add an 'Add Note' function to issue, to avoid optimistic-lock of i...https://www.redmine.org/issues/31432009-04-08T12:09:11ZChaoqun Zou
<p>Most of the issue's update operations are to add a note but not to update the issue's attributes. And if an issue is updated frequently, there may be lots of optimistic-locks which prevent the issue to be saved.</p>
<p>So I thought it would be better to extract the 'add note' function from issue's update, then multi-users can add their notes simultaneously.</p> Redmine - Defect #3140 (Closed): Issue update notification email still sent out even the update i...https://www.redmine.org/issues/31402009-04-08T08:43:13ZChaoqun Zou
<p>When issue's updated is canceled by optimistic-lock, the notification email will still be sent out.</p> Redmine - Defect #3054 (Closed): MyPage's layout can't be saved https://www.redmine.org/issues/30542009-03-26T13:45:51ZChaoqun Zou
<p>When add a new module and change its default location, then save. The new module is saved, but the layout of it can't be saved(still at the default location: up center).</p> Redmine - Patch #3028 (Closed): Simplified Chinese language file zh.yml updated to r2614https://www.redmine.org/issues/30282009-03-23T11:46:52ZChaoqun ZouRedmine - Feature #3021 (Closed): Extend search with pluginshttps://www.redmine.org/issues/30212009-03-22T09:15:59ZChaoqun Zou
<p>For now the search scope in search controller can't be extended by plugins.</p>
<p>See ln51 in search_controller.rb</p>
<pre><code>@object_types = %w(issues news documents changesets wiki_pages messages projects)</code></pre>
<p>So if there is a plugin_hook which let plugin add object_types to above, the plugin can easily integrated their search function into redmine's search page.</p> Redmine - Patch #2999 (Closed): Simplified Chinese language zh.yml updated to r2598https://www.redmine.org/issues/29992009-03-18T14:10:52ZChaoqun ZouRedmine - Patch #2912 (Closed): Simplified Chinese language file zh.yml updated to r2552https://www.redmine.org/issues/29122009-03-05T13:12:39ZChaoqun Zou
<p>lang file</p> Redmine - Patch #2862 (New): Make user sorting by his localized encoding name instead of utf-8 en...https://www.redmine.org/issues/28622009-02-28T09:11:15ZChaoqun Zou
<p>For those using non-ASCII systems, sorting user by name using a utf-8 encoding name and sorting user by name using their localized encoding name have different results.</p>
<p>For example: there are three users: user1, user2, user3.<br />If we sort them by name using the original utf-8 strings, the order may be: user1, user2, user3.<br />But when we convert the name string to another encoding(like gb2312) first, and then sort them by name, the result's order may be: user2, user1, user3.<br />And the second result is more acceptable than the first one.</p>
<p>So I thought that it would be great to convert the name string from utf-8 to the localized encoding before sorting user by name.</p>
<p>Since there is just one line bo be add to the user's model class, I didn't attach a diff file.<br />About line 217:<br /><pre>
<code class="ruby syntaxhl"> <span class="k">def</span> <span class="nf"><</span><span class="o">=></span><span class="p">(</span><span class="n">user</span><span class="p">)</span>
<span class="n">ic</span> <span class="o">=</span> <span class="no">Iconv</span><span class="p">.</span><span class="nf">new</span><span class="p">(</span><span class="n">l</span><span class="p">(</span><span class="ss">:general_csv_encoding</span><span class="p">),</span> <span class="s1">'UTF-8'</span><span class="p">)</span>
<span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="nb">self</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span> <span class="o"><=></span> <span class="n">ic</span><span class="p">.</span><span class="nf">iconv</span><span class="p">(</span><span class="n">user</span><span class="p">.</span><span class="nf">to_s</span><span class="p">.</span><span class="nf">downcase</span><span class="p">)</span>
<span class="k">end</span>
</code><br /></pre></p> Redmine - Patch #2837 (Closed): Simplified Chinese lang file zh.yml updated to r2523https://www.redmine.org/issues/28372009-02-25T13:01:30ZChaoqun Zou
<p>lang</p> Redmine - Defect #2805 (Closed): Locale defect in r2513: typoshttps://www.redmine.org/issues/28052009-02-22T07:53:31ZChaoqun Zou
<p>There is an additional ' in some strings, for example:</p>
<pre><code>label_display_per_page: "Per page: {{value}}'"</code></pre>
<p>This will cause the per page link displayed as: 25, 50, 100'</p>
<p>I think this ' may be a typo?</p>
<p>Find them with phrase: '"</p> Redmine - Patch #2804 (Closed): Simplified Chinese language file zh.yml updated to r2513https://www.redmine.org/issues/28042009-02-22T07:36:09ZChaoqun Zou
<p>In config/locales.</p> Redmine - Defect #2801 (Closed): Locale defect in r2501: missing openid related locales, support ...https://www.redmine.org/issues/28012009-02-21T16:15:47ZChaoqun Zou
<p>The openid related strings are missing. Find them with 'openid' or 'open_id'.</p>
<p>The support section have some different versions.</p>
<p>In en.yml and some others:</p>
<pre><code>support:<br /> array:<br /> sentence_connector: "and" <br /> skip_last_comma: false</code></pre>
<p>In es.yml:</p>
<pre><code>support:<br /> array:<br /> sentence_connector: "y"</code></pre>
<p>In fr.yml and some others:</p>
<pre><code>support:<br /> array:<br /> sentence_connector: 'et'<br /> skip_last_comma: true<br /> word_connector: ", " <br /> two_words_connector: " et " <br /> last_word_connector: " et "</code></pre>
<p>In zh.yml and some others:</p>
<pre><code>support:<br /> array:<br /> words_connector: ", " <br /> two_words_connector: " 和 " <br /> last_word_connector: ", 和 "</code></pre> Redmine - Feature #2770 (Reopened): Display of inline attached images in email notificationhttps://www.redmine.org/issues/27702009-02-18T01:22:08ZChaoqun Zou
<p>Now if we would like to include attached images in the issue's description, we can use</p>
<pre>!image_name.jpg!</pre>
<p>This works well when the issue is displayed in browser, but the image will not displayed correctly in the notification mail.</p>
<p>So I thought that if we could upload the image before saving the issue could be a useful and flexible way.</p> Redmine - Defect #2754 (Closed): Setting up the default_url_options :port in hook will duplicate ...https://www.redmine.org/issues/27542009-02-15T04:37:29ZChaoqun Zou
<p>By <a class="changeset" title="Added request and controller objects to the hooks by default. The request and controller objects..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2429">r2429</a>, the plugin hook will setting up the default_url_options :host, :port, and :protocol.</p>
<p>But in the setting page, the host parameter is designed to contain port, so the two port will duplicated. Now I can see them duplicated in mails.</p>
<p>For example:</p>
<ul>
<li>Send test mail in the setting page</li>
<li>The issue' url in the notification mail</li>
</ul> Redmine - Patch #2743 (Closed): Simplified Chinese language file zh.yml updated to r2460https://www.redmine.org/issues/27432009-02-13T16:20:16ZChaoqun Zou
<p>lang</p> Redmine - Defect #2726 (Closed): Apply filter on issues in one project will cause the pagination ...https://www.redmine.org/issues/27262009-02-12T09:17:42ZChaoqun Zou
<p>Example:</p>
<ul>
<li>goto project redmine's issue</li>
<li>change the status to all in the filter dropdown</li>
<li>click apply</li>
<li>if the issues are paginated, the pagination link will lose it's project parameter</li>
<li>then if you click the page linke, you will see all project's issues</li>
</ul> Redmine - Feature #2649 (Closed): Need @controller context in plugin hook(view_layouts_base_html_...https://www.redmine.org/issues/26492009-02-02T18:24:51ZChaoqun Zou
<p>Since there is some need to add plugin's css style into redmine's page, I think it is a good place to add it in the plugin hook of view_layouts_base_html_head.</p>
<p>But I need to know the controller name and action name before doing this, because only a few pages need plugin's css code.</p>
<p>Example:<br />Add plugin's activity into redmine's activity page need an additional css code.</p>
<p>It's simple to implement, just modify two lines in base.rhtml:</p>
<p>ln17: <%= call_hook :view_layouts_base_html_head, :controller => <a class="user active" href="https://www.redmine.org/users/11680">Nathaniel Knutson</a> <span>><br />ln64: <</span>= call_hook :view_layouts_base_body_bottom, :controller => <a class="user active" href="https://www.redmine.org/users/11680">Nathaniel Knutson</a> %></p> Redmine - Patch #2644 (Closed): Simplified Chinese language file zh.yml updated to r2352https://www.redmine.org/issues/26442009-02-02T08:59:33ZChaoqun Zou
<p>lang</p> Redmine - Patch #2562 (Closed): Simplified Chinese language file zh.yml updated to r2294https://www.redmine.org/issues/25622009-01-22T14:07:01ZChaoqun Zou
<p>lang</p> Redmine - Defect #2492 (Closed): Issue with attachment export to PDF will hang after upgraded to ...https://www.redmine.org/issues/24922009-01-12T08:31:31ZChaoqun Zou
<p>And the exported file is not a pdf but a error html page:</p>
<p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <br /> "http://www.w3.org/TR/html4/loose.dtd"><br /><html><br /><title>redMine 500 error</title><br /><style><br />body{<br />font-family: Trebuchet MS,Georgia,"Times New Roman",serif;<br />color:#303030;<br />margin:10px;<br />}<br />h1{<br />font-size:1.5em;<br />}<br />p{<br />font-size:0.8em;<br />}<br /></style><br /><body><br /> <h1>Internal error</h1><br /> <p>An error occurred on the page you were trying to access.<br /><br /> If you continue to experience problems please contact your redMine administrator for assistance.</p><br /> <p><a href="javascript:history.back()">Back</a></p><br /></body><br /></html></p> Redmine - Patch #2428 (Closed): Simplified Chinese language file zh.yml updated to r2220https://www.redmine.org/issues/24282009-01-01T15:26:58ZChaoqun Zou
<p>lang</p> Redmine - Feature #2416 (Closed): {background:color} doesn't work in text formattinghttps://www.redmine.org/issues/24162008-12-30T06:18:42ZChaoqun Zou
<pre>
table{border:1px bordercolor:darkblue}.
|_.1|_.2|_.3|_.4|
|a|b|{background:#ddd}.c|d|
|e|f|g|{background:#ddd}. Grey cell|
</pre>
<p>should looks like the table below, but in the current devel version(<a class="changeset" title="#2373, fixing encoding" href="https://www.redmine.org/projects/redmine/repository/svn/revisions/2202">r2202</a> tested), the background color cann't be displayed.</p>
<table>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td style="background:#ddd;">c</td>
<td>d</td>
</tr>
<tr>
<td>e</td>
<td>f</td>
<td>g</td>
<td style="background:#ddd;">Grey cell</td>
</tr>
</table> Redmine - Feature #2375 (Closed): Add select watcher option to the New Issue pagehttps://www.redmine.org/issues/23752008-12-22T12:59:00ZChaoqun Zou
<p>I have found that there were some issues related to this feature, but none is same as this one.</p>
<p>Since I thought that this feature's request is much clearer than others and maybe is not difficult to implement, I add this issue.</p>
<p>At now, we have lots of issues that need some watchers, and what we are doing is to: </p>
<pre><code>add a new issue -> save it -> add some watchers -> immediately update it.</code></pre>
<p>So I suggest to add this feature. If you aggreed with me, I can upload a patch of that.</p>
<p>What do you think?</p> Redmine - Feature #2323 (Closed): Workflow permissions for administratorshttps://www.redmine.org/issues/23232008-12-12T08:09:51ZChaoqun Zou
<p>Since admin is designed to have all operation privileges, I think that though admin is not member of a project, he should also change the issue's status.</p>
<p>Do you think so?</p>
<p>If you agree with me, I can upload a patch for this.</p>
<p>And if you decide to leave this behavior as now, I will follow you, too.</p> Redmine - Patch #2302 (Closed): Simplified Chinese language file updated to r2113https://www.redmine.org/issues/23022008-12-08T14:16:48ZChaoqun Zou
<p>language file</p> Redmine - Patch #2290 (Closed): Simplified Chinese language file updated to r2099https://www.redmine.org/issues/22902008-12-07T02:30:58ZChaoqun Zou
<p>lang</p> Redmine - Patch #2249 (Closed): Simplified Chinese lang file updated to r2068https://www.redmine.org/issues/22492008-11-30T14:03:01ZChaoqun Zou
<p>lang</p> Redmine - Patch #2178 (Closed): Simplified Chinese lang file zh.yml updated to r2029https://www.redmine.org/issues/21782008-11-13T15:30:01ZChaoqun Zou
<p>lang file</p> Redmine - Patch #2151 (Closed): Simplified Chinese lang file zh.yml updated to r1999https://www.redmine.org/issues/21512008-11-09T14:53:09ZChaoqun Zou
<p>zh.yml</p> Redmine - Patch #2127 (Closed): Simplified Chinese language file zh.yml updated to r1977https://www.redmine.org/issues/21272008-11-03T15:01:20ZChaoqun Zou
<p>lang</p> Redmine - Patch #2100 (Closed): Simplified Chinese language file zh.yml updated to r1957https://www.redmine.org/issues/21002008-10-27T14:07:51ZChaoqun Zou
<p>lang</p> Redmine - Patch #2046 (Closed): Simplified Chinese lang file zh.yml updated to r1935https://www.redmine.org/issues/20462008-10-17T16:05:03ZChaoqun Zou
<p>lang file</p> Redmine - Patch #1993 (Closed): To correct the defect that non-ASCII subversion path can't be dis...https://www.redmine.org/issues/19932008-10-06T08:36:52ZChaoqun Zou
<p>The path parameter of the entries function<br /><pre><code class="ruby syntaxhl"><span class="n">entries</span><span class="p">(</span><span class="n">path</span><span class="o">=</span><span class="kp">nil</span><span class="p">,</span> <span class="n">identifier</span><span class="o">=</span><span class="kp">nil</span><span class="p">)</span>
</code></pre><br />function must be escaped before it passed to the svn command line executable. And other functions using the path parameter is also changed as above.</p>
<p>A related message could be found at: <a class="external" href="http://www.redmine.org/boards/2/topics/show/2396#message-2397">http://www.redmine.org/boards/2/topics/show/2396#message-2397</a></p> Redmine - Patch #1923 (Closed): Simplified Chinese lang file zh.yml updated to r1877https://www.redmine.org/issues/19232008-09-18T15:19:51ZChaoqun Zou
<p>lang</p> Redmine - Patch #1907 (Closed): Simplified Chinese lang file zh.yml updated to r1860https://www.redmine.org/issues/19072008-09-15T14:30:14ZChaoqun Zou
<p>lang</p> Redmine - Patch #1809 (Closed): Simplified Chinese lang file zh.yml updated to r1768https://www.redmine.org/issues/18092008-08-26T14:26:02ZChaoqun Zou
<p>lang</p> Redmine - Feature #1757 (New): Immediately send a notify email when a user is added to issue's wa...https://www.redmine.org/issues/17572008-08-07T07:54:38ZChaoqun Zou
<p>Hi, Jean-Philippe, it is a great feature that you add the watcher list to the issue. By this feature, we are now able to select the members who should receive notify email about an issue.</p>
<p>But I think it would be more useful that redmine could send a issue's summary info to the watcher when he is added to the list. Do you think so?</p> Redmine - Feature #1751 (Closed): I have wrote a FAQ management plugin for redmine and would you ...https://www.redmine.org/issues/17512008-08-05T14:19:04ZChaoqun Zou
<p>I called it as ezFAQ plugin.</p>
ezFAQ plugin 0.0.1<br />This is a FAQ management plugin for Redmine
= Feature<br />1. Ask question and request a user to answer it.<br />2. FAQ is grouped by categories.<br />3. FAQ's modification has history logs.
<p>=== Roadmap<br />0.0.2 -> Send notify email to the assigned user who should answer the question.<br />0.0.3 -> Generate pdf version FAQ document including all valid FAQ.</p>
<p>The github page is: <a class="external" href="http://github.com/zouchaoqun/ezfaq/tree/master">http://github.com/zouchaoqun/ezfaq/tree/master</a><br />And the Public Clone URL is: git://github.com/zouchaoqun/ezfaq.git</p>
<p>Jean-Philippe, would you like me to add some introduction on redmine's wiki as other plugins do?</p>
<p><img src="https://www.redmine.org/attachments/download/844/ezfaq.jpg" alt="" /></p> Redmine - Patch #1743 (Closed): Don't display 'show_diff' button on wiki's history page if there ...https://www.redmine.org/issues/17432008-08-04T14:47:48ZChaoqun Zou
<p>On wiki's history page, if there is only 1 version, the radio buttons are hided but the show_diff button is still displayed.</p>
<p>To change this, modify the views\wiki\hisory.rhtml at line 33:</p>
<p><%= submit_tag l(:label_view_diff), :class => 'small' %></p>
<p>to:</p>
<p><%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %></p> Redmine - Patch #1742 (Closed): Simplified Chinese lang file zh.yml updated to r1715https://www.redmine.org/issues/17422008-08-04T13:27:22ZChaoqun Zou
<p>lang file</p> Redmine - Defect #1734 (Closed): A minor code error in views\wiki\history.htmlhttps://www.redmine.org/issues/17342008-08-02T16:12:09ZChaoqun Zou
<p>line 21:<br /> <td class="id"><%= link_to ver.version, :action => 'index', :page => @page.title, :version => ver.version %></th></p>
<p>maybe the last </th> should be </td> ?</p> Redmine - Patch #1715 (Closed): Simplified Chinese lang file updated to r1709https://www.redmine.org/issues/17152008-07-30T13:50:51ZChaoqun Zou
<p>lang file</p> Redmine - Patch #1630 (Closed): Simplified Chinese lang file zh.yml updated to r1663https://www.redmine.org/issues/16302008-07-13T13:40:48ZChaoqun Zou
<p>lang file</p> Redmine - Defect #1620 (Closed): Plugin's setting page is broken after upgrading to rails 2.1.0https://www.redmine.org/issues/16202008-07-10T13:52:11ZChaoqun Zou
<pre>
ActionView::MissingTemplate in Settings#plugin
Showing settings/plugin.rhtml where line #6 raised:
Missing template ../../vendor/plugins/sample_plugin/app/views/settings/_settings in view path E:/ruby/projects/redmine/app/views
Extracted source (around line #6):
3: <div id="settings">
4: <% form_tag({:action => 'plugin'}) do %>
5: <div class="box tabular">
6: <%= render :partial => @partial, :locals => {:settings => @settings}%>
7: </div>
8: <%= submit_tag l(:button_apply) %>
9: <% end %>
RAILS_ROOT: E:/ruby/projects/redmine
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:85:in `raise_missing_template_exception'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:78:in `set_extension_and_file_name'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:15:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partial_template.rb:8:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:273:in `render'
app/views/settings/plugin.rhtml:6:in `_run_erb_47app47views47settings47plugin46rhtml'
app/views/settings/plugin.rhtml:4:in `_run_erb_47app47views47settings47plugin46rhtml'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:85:in `raise_missing_template_exception'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:78:in `set_extension_and_file_name'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:15:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partial_template.rb:8:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:273:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:141:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:141:in `capture_erb_with_buffer'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:44:in `capture'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_tag_helper.rb:444:in `form_tag_in_block'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_tag_helper.rb:39:in `form_tag'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in `render_template'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in `render_file'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1108:in `render_for_file'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:841:in `render_with_no_layout'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/layout.rb:251:in `render_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1157:in `default_render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1163:in `perform_action_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:112:in `handle_dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:78:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:62:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/webrick.rb:66
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:85:in `raise_missing_template_exception'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:78:in `set_extension_and_file_name'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:15:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partial_template.rb:8:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/partials.rb:110:in `render_partial'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:273:in `render'
app/views/settings/plugin.rhtml:6:in `_run_erb_47app47views47settings47plugin46rhtml'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:141:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:141:in `capture_erb_with_buffer'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/capture_helper.rb:44:in `capture'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_tag_helper.rb:444:in `form_tag_in_block'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/helpers/form_tag_helper.rb:39:in `form_tag'
app/views/settings/plugin.rhtml:4:in `_run_erb_47app47views47settings47plugin46rhtml'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_handlers/compilable.rb:29:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in `render_template'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in `render_file'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1108:in `render_for_file'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:841:in `render_with_no_layout'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/layout.rb:251:in `render_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:51:in `render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1157:in `default_render'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1163:in `perform_action_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:112:in `handle_dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:78:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:62:in `dispatch'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/webrick.rb:66
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3
Request
Parameters:
{"id"=>"sample_plugin"}
Show session dump
---
flash: !map:ActionController::Flash::FlashHash {}
Response
Headers:
{"cookie"=>[],
"Cache-Control"=>"no-cache"}
</pre> Redmine - Patch #1534 (Closed): Simplified Chinese lang file zh.yml updated to r1584https://www.redmine.org/issues/15342008-06-26T12:53:57ZChaoqun Zou
<p>please close the previous lang file: <a class="changeset" title="Show date range on the activity (closes #837)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1303">r1303</a> <a class="changeset" title="Fixed: SVN errors lead to svn username/password being displayed to end users (#1368)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1493">r1493</a></p> Redmine - Feature #1506 (Closed): Add title length note and error info when creating project or c...https://www.redmine.org/issues/15062008-06-20T03:00:12ZChaoqun Zou
<p>I have encountered several times that there was none error info if the news title is too long, and the page would displayed a rails exception.</p>
<p>For example:<br /><pre>
ActiveRecord::StatementInvalid in NewsController#new
Mysql::Error: Data too long for column 'title' at row 1: INSERT INTO `news` (`created_on`, `project_id`, `title`, `description`, `summary`, `author_id`, `comments_count`) VALUES('2008-06-20 10:24:15', 3, 'the very long title that will cause exception', 'the news', 22, 0)
RAILS_ROOT: redmine
Application Trace | Framework Trace | Full Trace
ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log'
ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:281:in `execute'
</pre></p>
<p>And this will confuse the users who are not a developer.</p>
<p>So, I think it will be greate to add a length limit note on the creating page, and give out an error info rather than directly display the rails exception page.</p> Redmine - Feature #1500 (Closed): Feature request: assign issue to multiple usershttps://www.redmine.org/issues/15002008-06-19T06:54:19ZChaoqun Zou
<p>Since we are using redmine more for issue tracking and task assignment in our team, I have found that the ability to assign a issue to multiple users is very imporment. Especially for task assignment in the daily management, because there are a lot of task need more than one user to complete. For example, 'please report your next month's working plan'.</p>
<p>Maybe some current users of redmine don't think this feature is important, but I think that this feature will extend redmine's application domain much more.</p> Redmine - Patch #1493 (Closed): Simplified Chinese lang file zh.yml(r1561)https://www.redmine.org/issues/14932008-06-18T14:14:56ZChaoqun Zou
<p>translate the two new strings</p> Redmine - Patch #1466 (Closed): Add code highlight to the board messageshttps://www.redmine.org/issues/14662008-06-16T15:14:48ZChaoqun Zou
<p>Since some friend has asked for the code highlight function in board messages, I have checked the messages/show.rhtml file.</p>
<p>And I found that the code highlight html code is generated but is not displayed correctly. The reason is that the scm.css file is not linked to the messages/show.rhtml file as the wiki/show.rhtml does.</p>
<p>So just copying the link code from wiki to messages will solve the problem.</p>
<p>But I don't know if you want the code highlight function in board messages? So please make your decision to accept it or not.</p>
<p><sup>_</sup></p> Redmine - Patch #1407 (Closed): Simplified Chinese lang file zh.yml updated to r1518https://www.redmine.org/issues/14072008-06-09T04:06:38ZChaoqun Zou
<p>lang file</p> Redmine - Patch #1343 (Closed): Simplified Chinese lang zh.yml updated to r1482https://www.redmine.org/issues/13432008-06-01T14:08:17ZChaoqun Zou
<p>and with the other two lang file updated: jstoolbar-zh.js, calendar-zh.js</p> Redmine - Patch #1303 (Closed): Simplified Chinese zh lang file update to r1460https://www.redmine.org/issues/13032008-05-26T14:21:34ZChaoqun Zou
<p>and with the other two lang file updated too:</p>
<p>calender-zh.js<br />jstoolbar-zh.js</p> Redmine - Patch #1293 (Closed): Simplified Chinese lang file zh.yml update to r1444https://www.redmine.org/issues/12932008-05-23T16:02:20ZChaoqun Zou
<p>lang file</p> Redmine - Patch #1286 (Closed): Adding non-ASCII new issue type in the New Issue page have encodi...https://www.redmine.org/issues/12862008-05-22T13:46:55ZChaoqun Zou
<p>I have test firefox3, IE6 and IE7.<br />In the new issue page, adding ASCII new issue type is correct using all of the three browser.</p>
<p>But when add non-ASCII new issue type, only firefox works fine. IE6 will add mess-up characters to issue types and IE7 will fail to add the new type.</p>
<p>I have resolved this problem by add encodeURIComponent in the promptToRemote function in application.js.<br />And now both ASCII and non-ASCII new issue type can be added successfully.</p>
<pre>
Index: application.js
--- application.js Base (BASE)
+++ application.js Locally Modified (Based On LOCAL)
@@ -56,7 +56,7 @@
function promptToRemote(text, param, url) {
value = prompt(text + ':');
if (value) {
- new Ajax.Request(url + '?' + param + '=' + value, {asynchronous:true, evalScripts:true});
+ new Ajax.Request(url + '?' + param + '=' + encodeURIComponent(value), {asynchronous:true, evalScripts:true});
return false;
}
}
</pre> Redmine - Defect #1243 (Closed): Uploading of attachment with Non-ascii filename fails when host ...https://www.redmine.org/issues/12432008-05-15T15:02:51ZChaoqun Zou
<p>When redmine is hosted on windows, if the uploaded attachement's file-name is Non-ascii(eg. Chinese, Japanese..), there will be an exception of invalid-argument and the uploading will fail. <br />The attachemented picture shows the error page.</p>
<p>I have found what caused this error(from the ruby way, second edition):<br /><ins><br />There are other OS issues relating to character conversion. Suppose that the operating system on which Ruby is running is set to a non-UTF-8 locale, or Ruby doesn't use UTF-8 to communicate with the OS (as is the case with the Win32 package). Then there are additional complications.<br />For example, Windows supports Unicode filenames and uses Unicode internally. But Ruby at the present time communicates with Windows through the legacy code page. In the case of English and most other western European editions, this is code page 1252 (or WINDOWS-1252).<br />You can still use UTF-8 inside your application, but you'll need to convert to the legacy code page to specify filenames. This can be done using iconv, but it's important to remember that the legacy code page can describe only a small subset of the characters available in Unicode.<br />In addition, this means that Ruby on Windows cannot, at present, open existing files whose names cannot be described in the legacy code page. This restriction does not apply to Mac OS X, Linux, or other systems using UTF-8 locales.<br /></ins></p>
<p>And, If modify the attachment.rb like the following, I can resolve my problem when host redmine on a Chinese version Windows server.<br />I am wondering that if there exist an common way to resolve this problem for the windows users?<br />I think if I can determine the host os is windows(easy) and the filename is Non-ascii(difficult?), then I can do some converting work like the following.</p>
<p>Index: attachment.rb<br />--- attachment.rb Base (BASE)<br />+++ attachment.rb Locally Modified (Based On LOCAL)<br /><code>@ -75,7 +75,8 </code>@</p>
<ol>
<li>Returns file's location on disk<br /> def diskfile<br />- "#{<code>@storage_path}/#{self.disk_filename}" <br />+ filename = "#{</code>@storage_path}/#{self.disk_filename}" <br />+ Iconv.new("gbk", "utf-8").iconv(filename)<br /> end</li>
</ol> Redmine - Defect #1177 (Closed): wiki page will throw exception after updating to r1417https://www.redmine.org/issues/11772008-05-05T15:18:16ZChaoqun Zou
<p>wiki page cann't be displayed after updating to <a class="changeset" title="Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes). New permission adde..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1415">r1415</a> which add a protect permission to wiki page</p>
<p>NoMethodError in WikiController#index <br />undefined method `protected?' for #<WikiPage:0xae278f4><br />RAILS_ROOT: E:/ruby/projects/redmine</p>
<p>Application Trace | Framework Trace | Full Trace <br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:200:in `method_missing'<br />app/models/wiki_page.rb:111:in `editable_by?'<br />app/controllers/wiki_controller.rb:197:in `editable?'<br />app/controllers/wiki_controller.rb:51:in `index'<br />script\server:3<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:200:in `method_missing'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br />c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'<br />c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'<br />c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/lib/ruby-debug.rb:90:in `debug_load'<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/lib/ruby-debug.rb:90:in `main'<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/bin/rdebug-ide:74<br />C:/ruby/bin/rdebug-ide:19:in `load'<br />C:/ruby/bin/rdebug-ide:19<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:200:in `method_missing'<br />app/models/wiki_page.rb:111:in `editable_by?'<br />app/controllers/wiki_controller.rb:197:in `editable?'<br />app/controllers/wiki_controller.rb:51:in `index'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br />c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'<br />c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:171:in `handle_request'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:115:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:126:in `dispatch_cgi'<br />c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/dispatcher.rb:9:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:112:in `handle_dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:78:in `service'<br />c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'<br />c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'<br />c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/webrick_server.rb:62:in `dispatch'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/servers/webrick.rb:66<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in'<br />c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require'<br />c:/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'<br />c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'<br />script\server:3<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/lib/ruby-debug.rb:90:in `debug_load'<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/lib/ruby-debug.rb:90:in `main'<br />c:/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.1.10/bin/rdebug-ide:74<br />C:/ruby/bin/rdebug-ide:19:in `load'<br />C:/ruby/bin/rdebug-ide:19<br />Request<br />Parameters:</p>
<p>{"id"=>"test"}</p>
<p>Show session dump</p>
<p>--- <br />projectslist_files_sort: <br /> :order: asc<br /> :key: attachments.filename<br />flash: !map:ActionController::Flash::FlashHash {}</p>
<p>:user_id: 1</p>
<p>Response<br />Headers:</p>
<p>{"cookie"=>[],<br /> "Cache-Control"=>"no-cache"}</p> Redmine - Patch #1170 (Closed): export issue to pdf will messup when use Chinese languagehttps://www.redmine.org/issues/11702008-05-04T16:08:22ZChaoqun Zou
<p>When using Chinese language, exporting issue to pdf will messup when the issue description is too long to be auto line broken.<br />The reason is the original chinese.rb assumes that the Chinese letter in utf-8 has 2 bytes, but actually the utf-8 Chinese letter has 3 bytes. So sometimes the auto line breaking function will insert a break in the middle of a Chinese letter, and then iconv which cann't convert the utf-8 text to gb2312 will throw an exception.<br />The jpg attachment shows the messup effect.</p>
<p>The attached patch also resolve a type convert error which will cause explicit line break being ignored.</p>
<p>And I have also checked the japanese.rb and korean.rb file in the same rfpdf folder. They also have the same problem that they assumes japanese or korean letter letter in utf-8 has 2 bytes which actually has 3. I hope some local user would correct them because I cann't read japanese or korean.</p> Redmine - Patch #1128 (Closed): Simplified Chinese language file zh.yml updated to r1371https://www.redmine.org/issues/11282008-04-28T13:40:36ZChaoqun Zou
<p>as title</p> Redmine - Patch #927 (Closed): Simplified Chinese lang file zh.yml updated to r1291https://www.redmine.org/issues/9272008-03-25T14:37:22ZChaoqun Zou
<p><del><sup>_</sup></del></p> Redmine - Patch #840 (Closed): Simplified Chinese lang file zh.yml updated to r1229https://www.redmine.org/issues/8402008-03-12T16:24:47ZChaoqun Zou
<p>as title</p> Redmine - Patch #798 (Closed): Simplified Chinese lang file zh.yml updated to r1198https://www.redmine.org/issues/7982008-03-06T15:26:51ZChaoqun Zou
<p>add new translations and correct some old translations</p> Redmine - Defect #797 (Closed): When Add Project, Module List is not localizedhttps://www.redmine.org/issues/7972008-03-06T15:14:42ZChaoqun Zou
<p>On the add project page, the module list is showing English names.<br />While project settings -> modules page shows correct localized module names.</p> Redmine - Defect #771 (Closed): rev1093 doesn't work: Fixed migration 87 (mysql: TEXT column can'...https://www.redmine.org/issues/7712008-03-02T12:24:05ZChaoqun Zou
<p>my enviroment is:<br />windows xp<br />rails 2.0.2<br />mysql 5.0.45<br />redmine <a class="changeset" title="Fixed: fetch_changesets fails on commit comments that close 2 duplicates issues." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1183">r1183</a></p>
<p>in 001_setup.rb line174<br /> create_table "projects", :force => true do |t|<br /> t.column "name", :string, :limit => 30, :default => "", :null => false<br /> t.column "description", :string, :default => "", :null => false<br />this means column "description" will have a default value of ""</p>
<p>and<br />in ruby\lib\ruby\gems\1.8\gems\activerecord-2.0.2\lib\active_record\connection_adapters\mysqladapter.rb line429<br /> def change_column(table_name, column_name, type, options = {}) #:nodoc:<br /> unless options_include_default?(options)<br /> if column = columns(table_name).find { |c| c.name == column_name.to_s }<br /> options[:default] = column.default<br /> else<br /> raise "No such column: #{table_name}.#{column_name}" <br /> end<br /> end<br />this means when use change_column in 087_change_projects_description_to_text.rb<br /> change_column :projects, :description, :text, :null => true<br />active_record will find column description's default value and add it to the sql:<br /> ALTER TABLE `projects` CHANGE `description` `description` text DEFAULT ''<br />which will fail, info:</p>
<p>rake aborted!<br />Mysql::Error: BLOB/TEXT column 'description' can't have a default value: ALTER TABLE `projects` CHANGE `description` `description` text DEFAULT ''</p>
<p>so I think just remove the "default => ''" statement from 087_change_projects_description_to_text.rb will not solve the problem.<br />Or should I use mysql5.1?</p> Redmine - Patch #761 (Closed): Simplified Chinese zh.yml lang file updated to r1183https://www.redmine.org/issues/7612008-03-01T13:29:07ZChaoqun Zou
<p>I have made a full check of the original zh.yml file and added many new translations.<br />Now every phrase in this file is translated to Simp. Chinese.<br />I have also adjusted the sequence of the phrases to make it identical to en.yml.</p> Redmine - Defect #760 (Closed): Is 'text_issue_category_reassign_to' in en.yml lang file correct?https://www.redmine.org/issues/7602008-03-01T11:58:13ZChaoqun Zou
<p>in the current version, it is:<br />571 text_issue_category_reassign_to: Reassign issues to this category</p>
<p>I think it maybe: Reassign issues to another category?</p> Redmine - Patch #749 (Closed): zh and zh-tw encoding problem patch in ifpdf_helper.rbhttps://www.redmine.org/issues/7492008-02-28T16:29:30ZChaoqun Zou
<p>The Chinese Language now have two lang file: zh for Simplified Chinese and zh-tw for Traditional Chinese.<br />They use different encoding: zh uses GB, zh-tw uses BIG5. Now the base ifpdf_helper.rb didn't distinguish them.<br />So when zh user request a pdf file, he will get a BIG5 encoding pdf file which can't be opened directly.</p> Redmine - Defect #745 (Closed): There is no activate notice when user registered in Simplified C...https://www.redmine.org/issues/7452008-02-27T14:22:33ZChaoqun Zou
<p>in en.yml:<br />notice_account_register_done: Account was successfully created. To activate your account, click on the link that was emailed to you.</p>
<p>in zh.yml<br />notice_account_register_done: 帐户已创建成功</p>
<p>this Chinese sentence is lake of "To activate your account, click on the link that was emailed to you.", so it is confusing, because I don't know I should activate before my first login.</p>