プロジェクト

全般

プロフィール

Vote #72726

完了

JRuby 1.7.2 support

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Ruby support_33
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
33
version_id:
60
issue_org_id:
12228
author_id:
1
assigned_to_id:
1
comments:
20
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

journals

CVS tests fails with JRuby on Windows:
* @@repository.fetch_changesets@ only loads 5 changesets (instead of 7)
* rake test dies on @test\functional\repositories_cvs_controller_test.rb@
--------------------------------------------------------------------------------
Toshi, that would be great if you could have a look at the CVS issues with JRuby.
--------------------------------------------------------------------------------
CVS tests pass on my Fedora 13.
<pre>
$ jruby --version
jruby 1.7.0 (1.9.3p203) 2012-10-22 ff1ebbe on OpenJDK 64-Bit Server VM 1.6.0_18-b18 [linux-amd64]
</pre>

CVS tests fails on Windows JRuby 1.6.
See #8825#note-2.
--------------------------------------------------------------------------------
When using JRuby 1.7.0 and setting the account Language to Simplified Chinese, an internal error occurred on the Admin's settings page. When setting the Language to English, the page is ok.

<pre>
Started GET "/settings" for 127.0.0.1 at 2012-11-04 00:41:00 +0800
Processing by SettingsController#index as HTML
Current user: admin (id=1)
Rendered settings/_general.html.erb (69.0ms)
Rendered settings/_display.html.erb (103.0ms)
Rendered common/_tabs.html.erb (248.0ms)
Rendered settings/edit.html.erb within layouts/admin (262.0ms)
Completed 500 Internal Server Error in 315ms

ActionView::Template::Error (incompatible character encodings: UTF-8 and GBK):
9: <% locale = User.current.language.blank? ? ::I18n.locale : User.current.language %>

10: <p><%= setting_select :date_format, Setting::DATE_FORMATS.collect {|f| [::I18n.l(D
ate.today, :locale => locale, :format => f), f]}, :blank => :label_language_based %></p>
11:
12: <p><%= setting_select :time_format, Setting::TIME_FORMATS.collect {|f| [::I18n.l(T
ime.now, :locale => locale, :format => f), f]}, :blank => :label_language_based %></p>
13:
14: <p><%= setting_select :user_format, @options[:user_format] %></p>
15:
app/helpers/settings_helper.rb:38:in `setting_select'
app/views/settings/_display.html.erb:12:in `_app_views_settings__display_html_erb__23830
1203_16264'
app/views/settings/_display.html.erb:1:in `_app_views_settings__display_html_erb__238301
203_16264'
app/views/common/_tabs.html.erb:24:in `_app_views_common__tabs_html_erb___1980793840_161
06'
app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___1980793840_161
06'
app/helpers/application_helper.rb:259:in `render_tabs'
app/views/settings/edit.html.erb:3:in `_app_views_settings_edit_html_erb__1640461337_161
02'
app/controllers/settings_controller.rb:26:in `index'
</pre>

<pre>
Environment:
Redmine version 2.1.2.stable
Ruby version 1.9.3 (java)
Rails version 3.2.8
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed
</pre>
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
Per Codehaus ticket http://jira.codehaus.org/browse/JRUBY-6961 jruby-openssl is bundled with jruby-1.7.x now; furthermore if you try to require and use jruby-openssl on jruby-1.7.0 it will raise an exception "private method `verify_mode=' for OpenSSL::SSL::"

However we can check JRuby version in Gemfile prior warbling and bundling Redmine:

<pre>
gem "jruby-openssl" if JRUBY_VERSION < '1.7.0'.
</pre>

Attached diff file to address this.

HTH
--------------------------------------------------------------------------------
JRuby 1.7.0 added to the "CI server":http://www.redmine.org/builds/index.html.
--------------------------------------------------------------------------------
epicmonkey . wrote:
> Per Codehaus ticket http://jira.codehaus.org/browse/JRUBY-6961 jruby-openssl is bundled with jruby-1.7.x now; furthermore if you try to require and use jruby-openssl on jruby-1.7.0 it will raise an exception "private method `verify_mode=' for OpenSSL::SSL::"
>
> However we can check JRuby version in Gemfile prior warbling and bundling Redmine:

The provided patch breaks with non-JRuby interpreters as JRUBY_VERSION is not defined. Fixed patch committed in r10955.
--------------------------------------------------------------------------------
FWIW, tests fail on the CI server with JRuby 1.7.0 because of http://jira.codehaus.org/browse/JRUBY-7038 that occurs when running the database migration.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> FWIW, tests fail on the CI server with JRuby 1.7.0 because of jira.codehaus.org/browse/JRUBY-7038 that occurs when running the database migration.

I succeeded with migration from redmine 1.3 to redmine 2.1, mysql 5+jdbc on opensuse 11.4 rvm =* jruby-1.7.0 [ i386 ]
Must be special case bug.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
After a few more fixes, r11280 passes the tests suite with JRuby 1.7.2.
--------------------------------------------------------------------------------
There have been numerous improvements in the AR-PG JDBC bridge, is RM still unusable with it?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> There have been numerous improvements in the AR-PG JDBC bridge, is RM still unusable with it?

!pg_jruby1.7.2_mode1.9.png!
--------------------------------------------------------------------------------
Tests with PostgreSQL and JRuby1.7.2 have been running on the Redmine CI server for a few days, and it's greeen:

http://www.redmine.org/builds/index.html
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Tests with PostgreSQL and JRuby1.7.2 have been running on the Redmine CI server for a few days, and it's greeen:
>
> http://www.redmine.org/builds/index.html

Miss them, good news =)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Because of #13044.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Tests with PostgreSQL and JRuby1.7.2 have been running on the Redmine CI server for a few days, and it's greeen:
>
> http://www.redmine.org/builds/index.html

Wouldn't it work with JRuby 1.6 too?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Because of #13044.

#13044 is a JRuby/rake/Win32 issue.
--------------------------------------------------------------------------------


related_issues

relates,Closed,8825,JRuby + Windows: SCMs do not work on Redmine 1.2
relates,Closed,13044,Rake error using JRuby 1.7.2 and Redmine trunk

Admin Redmine さんが3年以上前に更新

  • カテゴリRuby support_33 にセット
  • 対象バージョン2.3.0_60 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0