Project

General

Profile

Problem with plugin APIs in Redmine version 3.3.0

Added by Yen Ho over 7 years ago

Before I writed some APIs in plugins, they work well with redmine version 2.5.2.
But after I upgraded redmine version 3.3.0 then these APIs don't still work. I don't know why?
Could you help me?

This log from server after we called an API:
ActiveRecord::RecordNotFound (Couldn't find all Osdsprints with 'id': (all, {:conditions=>["project_id = ? AND status = ?", "74", "0"], :order=>"startdate DESC"}) (found 0 results, but was looking for 2)):
plugins/osd_scrum/app/controllers/sprintrestful_controller.rb:29:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'


Replies (2)

RE: Problem with plugin APIs in Redmine version 3.3.0 - Added by Felix Schäfer over 7 years ago

Redmine has switched to Rails 4 starting with Redmine 3. Rails 4 does not support the "old" find methods from previous Rails versions anymore, which causes this error.

In short, your plugin needs to be updated to work with Redmine 3 and Rails 4.

    (1-2/2)