"Quote" and "Watch" button doesn't work after redmine upgrade (REXML::ParseException)

Added by Diego Pasqualin over 10 years ago

Hello, I recently upgraded from redmine 2.0.4 to 2.2.2 and when I try to click on "Quote" or "Watch" in a issue I get a "Loading" dialog that disappears very quickly, and nothing happens.

The message I get on the redmine production.log is:

Started POST "/watchers/watch?object_id=545&object_type=issue" for at Tue Feb 05 10:09:34 -0200 2013

REXML::ParseException (The document "project_id=undefined&authenticity_token=79NKPIv1bRQ0n9TsCgj8j1EeoqYdJPIAQ6C2j1AUOn8%3D" does not have a valid root):
  activesupport (3.2.11) lib/active_support/xml_mini/rexml.rb:35:in `parse'
  activesupport (3.2.11) lib/active_support/xml_mini.rb:80:in `__send__'
  activesupport (3.2.11) lib/active_support/xml_mini.rb:80:in `parse'
  activesupport (3.2.11) lib/active_support/core_ext/hash/conversions.rb:98:in `from_xml'

Any thoughts?

Redmine version 2.2.2.stable.11294
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.11
Environment production
Database adapter MySQL
Redmine plugins:
redmine_backlogs v0.9.35
redmine_impasse 1.2.2
wiking 0.0.3

Replies (2)

RE: "Quote" and "Watch" button doesn't work after redmine upgrade (REXML::ParseException) - Added by Mattias Amnefelt over 10 years ago

The same thing happens on my system after an upgrade from 1.2.3 to 2.2.2. I see that the ajax request which is issed is sent as Content-type: application/xml with a POST body which is form encoded. This is what causes the error above as rails tries to decode the form as an XML.

It seems this occurs because the redmine backlog plugin was installed. I set up a fresh system with redmine 2.2.2 and redmine backlogs 0.9.35 which exhibits the same behavior, but only after I installed redmine_backlogs. However, if I checked out the master branch of redmine_backlogs instead, it worked correctly. Not sure which commit actually fixes this, but there have been multiple changes to ajax and the jquery handling since v0.9.35.

Hope this helps!