プロジェクト

全般

プロフィール

Defect #1121

完了

Redmine 2.1.2 - Redmine_Hudson plugin 2.00 - ActionView::Template::Error (undefined method `auth_user' for #<HudsonSettings

Anthony HERBÉ さんが11年以上前に追加. 11年以上前に更新.

ステータス:
終了(Closed)
優先度:
高め(High)
担当者:
対象バージョン:
開始日:
2012/10/19
期日:
進捗率:

100%

予定工数:

説明

Hi,

First, thanks for your great job and time spent on it.

When we try to configure Hudson plugin settings for a projet in latest release of Redmine 2.4.1, we've got this error in trace log.

Global settings in administration section, seems to work.

Do you have any clue, to solve/fix/patch it qeekly ?

Thanks in advance.

Started GET "/projects/test/hudson_settings/edit" for 127.0.0.1 at 2012-10-18 19
:55:44 +0200
Processing by HudsonSettingsController#edit as HTML
  Parameters: {"id"=>"test"}
  Current user: a-herbe (id=3)
  Rendered plugins/redmine_hudson/app/views/hudson_settings/edit.html.erb within layouts/base (15.6ms)
Completed 500 Internal Server Error in 31ms

ActionView::Template::Error (undefined method `auth_user' for #<HudsonSettings:0
x4aef278>):
    11:      <span style="display:none;" id="rect_url_for_plugin"><%=text_field
:settings, :url_for_plugin, :size=>50%></span>
    12:   </p>
    13:   <p><label><%=t(:field_user)%></label>
    14:      <%=text_field :settings, :auth_user, :size=>20 %></p>
    15:   <p><label><%=t(:field_password)%></label>
    16:      <%=password_field :settings, :auth_password, :size=>20%></p>
    17:   <p><label><%=t(:label_get_build_details)%></label><%=check_box :settin
gs, :get_build_details, {}, 'true'%> <%=t(:notice_get_build_details)%></p>
  activemodel (3.2.8) lib/active_model/attribute_methods.rb:407:in `method_missi
ng'
  activerecord (3.2.8) lib/active_record/attribute_methods.rb:149:in `method_mis
sing'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:1161:in `value_befor
e_type_cast'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:1149:in `value_befor
e_type_cast'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:1043:in `block in to
_input_field_tag'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:1043:in `fetch'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:1043:in `to_input_fi
eld_tag'
  actionpack (3.2.8) lib/action_view/helpers/form_helper.rb:692:in `text_field'
  plugins/redmine_hudson/app/views/hudson_settings/edit.html.erb:14:in `block in
 _plugins_redmine_hudson_app_views_hudson_settings_edit_html_erb___733484823_395
84388'
  actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:40:in `block in c
apture'
  actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_outp

Toshiyuki Ando さんが11年以上前に更新

Thanks for your report.

I'm trying to upgrate plugin for Redmine 2.1.x
but, I haven't seen your problem.

Did you run command 'rake redmine:plugins:migrate' ?

- - さんが11年以上前に更新

I add some improve for Redmine 2.1.x support. You can take from GitHub:

https://github.com/alminium/redmine_jenkins

Please check it.

Ando san,

If you prefer, please take my modification though my modification
that may not so good. And I want you to rename plugin hudson to jenkins
to display plugin support jenkins.

Best regards,

- - さんが11年以上前に更新

If you prefer, please take my modification though my modification
that may not so good. And I want you to rename plugin hudson to jenkins
to display plugin support jenkins.

Sorry, I awared you already implement something for 2.1.x.
I did it before you do. So it will be conflict.

Toshiyuki Ando さんが11年以上前に更新

  • ステータス新規(New) から 担当(Assigned) に変更

Thanks for your modification !
I'm trying to merge.

I think Remame hudson to jenkins is next step.
If i finish upgrate, i'll try.

- - さんが11年以上前に更新

Toshiyuki Ando は書きました:

I think Remame hudson to jenkins is next step.
If i finish upgrate, i'll try.

Well, I rebased for your recent commits and rename jenkins commit to top.
You can check the my modifications without jenkins rename by following command
at redmine-2.1.x-alm branch:

$ git diff 336c69..HEAD~2

Toshiyuki Ando さんが11年以上前に更新

  • 対象バージョン1.0.9 にセット

Toshiyuki Ando さんが11年以上前に更新

  • ステータス担当(Assigned) から 解決(Resolved) に変更

Toshiyuki Ando さんが11年以上前に更新

  • 進捗率0 から 100 に変更

Toshiyuki Ando さんが11年以上前に更新

  • 対象バージョン1.0.9 から 2.1.0 に変更

Toshiyuki Ando さんが11年以上前に更新

  • ステータス解決(Resolved) から 終了(Closed) に変更

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