https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-06-03T09:13:58ZRedmineRedmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295212011-06-03T09:13:58ZToshi MARUYAMA
<ul><li><strong>Category</strong> changed from <i>Administration</i> to <i>SCM</i></li><li><strong>Assignee</strong> set to <i>Toshi MARUYAMA</i></li><li><strong>Target version</strong> set to <i>1.2.1</i></li></ul> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295222011-06-03T09:30:05ZToshi MARUYAMA
<ul></ul><p>I can reproduce.</p>
<pre>
$ /WEB-DOWN/JRUBY/jruby-1.6.2/bin/jruby --version
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (OpenJDK 64-Bit Server VM 1.6.0_18) [linux-amd64-java]
</pre>
<pre>
ActionView::TemplateError (Cannot run program "ddddd" (in directory "/REDMINE-1/hg-workdir/hg-bb-work"): java.io.IOException: error=2, No such file or directory) on line #28 of app/views/settings/_repositories.rhtml:
25: <td>
26: <%=
27: image_tag(
28: (scm_class.scm_available ? 'true.png' : 'exclamation.png'),
29: :style => "vertical-align:bottom;"
30: )
31: %>
org/jruby/RubyIO.java:3541:in `popen'
lib/redmine/scm/adapters/abstract_adapter.rb:221:in `shellout'
lib/redmine/scm/adapters/darcs_adapter.rb:56:in `darcs_binary_version_from_command_line'
lib/redmine/scm/adapters/darcs_adapter.rb:46:in `darcs_binary_version'
lib/redmine/scm/adapters/darcs_adapter.rb:38:in `client_version'
lib/redmine/scm/adapters/darcs_adapter.rb:42:in `client_available'
app/models/repository.rb:300:in `scm_available'
app/views/settings/_repositories.rhtml:28:in `block_called_from_erb?'
org/jruby/RubyArray.java:2336:in `collect'
app/views/settings/_repositories.rhtml:11:in `block_called_from_erb?'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:228:in `call'
app/views/settings/_repositories.rhtml:1:in `_run_rhtml_app47views47settings47_repositories46rhtml_locals_object_repositories_tab'
org/jruby/RubyKernel.java:2063:in `send'
app/views/common/_tabs.rhtml:24:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
org/jruby/RubyArray.java:1602:in `each'
app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
org/jruby/RubyKernel.java:2063:in `send'
app/helpers/application_helper.rb:218:in `render_tabs'
app/views/settings/edit.rhtml:3:in `_run_rhtml_app47views47settings47edit46rhtml'
org/jruby/RubyKernel.java:2063:in `send'
app/controllers/settings_controller.rb:25:in `index'
org/jruby/RubyKernel.java:2059:in `send'
org/jruby/RubyKernel.java:2059:in `send'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:228:in `call'
org/jruby/RubyArray.java:1602:in `each'
/WEB-DOWN/JRUBY/jruby-1.6.2/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/WEB-DOWN/JRUBY/jruby-1.6.2/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/WEB-DOWN/JRUBY/jruby-1.6.2/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:232:in `call'
Rendering /REDMINE-1/hg-workdir/hg-bb-work/public/500.html (500 Internal Server Error)
</pre> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295232011-06-03T09:31:10ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Can't disable scm (darcs)</i> to <i>JRuby: Can't open administrator panel if scm command is not available</i></li></ul> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295242011-06-03T09:42:46ZToshi MARUYAMA
<ul><li><strong>File</strong> <a href="/attachments/6095">jruby-darcs.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6095/jruby-darcs.diff">jruby-darcs.diff</a> added</li></ul><p>Please apply this patch.</p> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295262011-06-03T10:53:28ZJuan G
<ul></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>Please apply this patch.</p>
</blockquote>
<p>Your patch solves the issue.</p>
<p>Thanks very much Toshi for helping in this! :-D</p>
<p>BTW, should I mark this issue as solved?</p> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295272011-06-03T11:08:20ZToshi MARUYAMA
<ul></ul><p>After CI server tests pass in trunk, I will merge to 1.2-stable.<br />Then, I will close.<br /><a class="external" href="http://www.redmine.org/builds/index.html">http://www.redmine.org/builds/index.html</a></p> Redmine - Defect #8510: JRuby: Can't open administrator panel if scm command is not availablehttps://www.redmine.org/issues/8510?journal_id=295332011-06-03T13:20:12ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed trunk <a class="changeset" title="scm: catch all exceptions to get scm command version in repository model (#8510). If scm command..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/5999">r5999</a> and 1.2-stable <a class="changeset" title="Merged r5999 from trunk. scm: catch all exceptions to get scm command version in repository mode..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/6000">r6000</a> and CI server tests pass.</p>