Project

General

Profile

Problems with crashing redmine-hudson plugin

Added by Åke Holmlund over 11 years ago

Hi!

We have recently upgraded to Redmine 2.3.0 and redmine-hudson 2.1.1. The problem is that the plugin often breaks, giving an "Internal error" message for the user. One way of reproducing the error is to give the wrong, or no, password for Hudson in the plugin settings. We have the same problem talking to Hudson v1.393 and v3.0.0.

Looking in the Redmine log, the error produces a stack dump indicating some problem parsing the html-code received from Hudson. The start of the dump looks something like this:

Started GET "/staff/projects/holmtest-staff/hudson/index" for 130.239.70.21 at Fri Apr 12 12:42:10 +0200 2013
Processing by HudsonController#index as HTML
  Parameters: {"id"=>"holmtest-staff"}
  Current user: xxxx (id=3)
Completed 500 Internal Server Error in 1599ms

REXML::ParseException (#<REXML::ParseException: Missing end tag for 'HR' (got "body")
Line: 
Position: 
Last 80 unconsumed characters:
</html>>
/opt/Ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:330:in `pull'
/opt/Ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
/opt/Ruby/lib/ruby/1.8/rexml/document.rb:227:in `build'
/opt/Ruby/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
/local/opt/Redmine/staff/plugins/redmine_hudson/app/models/hudson.rb:81:in `new'
...

Any idea of what might be wrong?

Regards,
Åke Holmlund