kawasima / redmine_impasse

The redmine plugin for test management.
http://kawasima.github.com/redmine_impasse/
91 stars 99 forks source link

A bunch of commits to keep this plugin compatible with Redmine 4.x #245

Open fabricerobin opened 8 years ago

rohithn commented 6 years ago

Hi I am using redmine 3.4.0, but when I try to add a Test Case, I get an internal server error with the folowing error:

Started GET "/projects/test/impasse/test_case" for 127.0.0.1 at 2018-04-01 10:46:36 +0530
Processing by ImpasseTestCaseController#index as HTML
  Parameters: {"project_id"=>"test"}
  Current user: admin (id=1)
  Rendered plugins/redmine_impasse/app/views/impasse_test_case/index.html.erb within layouts/base (19.4ms)
Completed 200 OK in 86ms (Views: 59.8ms | ActiveRecord: 11.2ms)
Started GET "/projects/test/impasse/test_case/keywords" for 127.0.0.1 at 2018-04-01 10:46:37 +0530
Processing by ImpasseTestCaseController#keywords as JSON
  Parameters: {"project_id"=>"test"}
  Current user: admin (id=1)
Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 4.9ms)
Started GET "/projects/test/impasse/test_case/list?prefix=node&node_id=-1" for 127.0.0.1 at 2018-04-01 10:46:37 +0530
Processing by ImpasseTestCaseController#list as JSON
  Parameters: {"prefix"=>"node", "node_id"=>"-1", "project_id"=>"test"}
  Current user: admin (id=1)
Completed 500 Internal Server Error in 26ms (ActiveRecord: 7.7ms)

NoMethodError (undefined method `to_i' for true:TrueClass):
  plugins/redmine_impasse/app/models/impasse/node.rb:43:in `active?'
  plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:401:in `block in convert'
  plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:393:in `each'
  plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:393:in `convert'
  plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:36:in `list'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

How do I fix this?

fabricerobin commented 6 years ago

Hi,

Could you retry with the last commit on master branch ?

Thanks, Fabrice

2018-04-01 7:20 GMT+02:00 Rohith Nandakumar notifications@github.com:

Hi I am using redmine 3.4.0, but when I try to add a Test Case, I get an internal server error with the folowing error:

Started GET "/projects/test/impasse/test_case" for 127.0.0.1 at 2018-04-01 10:46:36 +0530 Processing by ImpasseTestCaseController#index as HTML Parameters: {"project_id"=>"test"} Current user: admin (id=1) Rendered plugins/redmine_impasse/app/views/impasse_test_case/index.html.erb within layouts/base (19.4ms) Completed 200 OK in 86ms (Views: 59.8ms | ActiveRecord: 11.2ms) Started GET "/projects/test/impasse/test_case/keywords" for 127.0.0.1 at 2018-04-01 10:46:37 +0530 Processing by ImpasseTestCaseController#keywords as JSON Parameters: {"project_id"=>"test"} Current user: admin (id=1) Completed 200 OK in 20ms (Views: 0.3ms | ActiveRecord: 4.9ms) Started GET "/projects/test/impasse/test_case/list?prefix=node&node_id=-1" for 127.0.0.1 at 2018-04-01 10:46:37 +0530 Processing by ImpasseTestCaseController#list as JSON Parameters: {"prefix"=>"node", "node_id"=>"-1", "project_id"=>"test"} Current user: admin (id=1) Completed 500 Internal Server Error in 26ms (ActiveRecord: 7.7ms)

NoMethodError (undefined method to_i' for true:TrueClass): plugins/redmine_impasse/app/models/impasse/node.rb:43:inactive?' plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:401:in block in convert' plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:393:ineach' plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:393:in convert' plugins/redmine_impasse/app/controllers/impasse_test_case_controller.rb:36:inlist' lib/redmine/sudo_mode.rb:63:in `sudo_mode'

How do I fix this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kawasima/redmine_impasse/pull/245#issuecomment-377755094, or mute the thread https://github.com/notifications/unsubscribe-auth/AG_GM9x27bwYbeK66hD7RU3Bet51STM4ks5tkGOPgaJpZM4HKYx5 .