ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

cvs test are not working (Bug #422)

Added by Gregor Schmidt at 2011-05-20 07:20 pm. Updated at 2011-05-21 05:29 am.

Status:Closed Start date:2011-05-20
Priority:Normal Due date:
Assignee:Felix Schäfer % Done:


Target version:2.0.0
Remote issue URL: Affected version:unstable


The test for the CVS adapter in the current unstable are broken. The errors started to occur with the merge of acts_as_journalized and are present in all configurations.

This seems to be the significant part of the stack:

wrong number of arguments (8 for 2) (ArgumentError)
gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:215:in `slice'
gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:215:in `send'
gems/activerecord-2.3.11/lib/active_record/associations/association_proxy.rb:215:in `method_missing'
gems/activerecord-2.3.11/lib/active_record/associations/association_collection.rb:394:in `method_missing'
vendor/plugins/acts_as_journalized/lib/redmine/acts/journalized/changes.rb:91:in `incremental_journal_changes'
vendor/plugins/acts_as_journalized/lib/redmine/acts/journalized/changes.rb:79:in `merge_journal_changes'

See for more error details.

Associated revisions

Revision 6f809b82
Added by Felix Schäfer at 2011-05-21 02:02 am

Replace a call to changes with its code from AR::Dirty. #422

acts_as_journalized called changes as per ActiveRecord::Dirty
the journalized model Changeset :has_many changes though, which
made the call return a list of associated objects instead of the
intended list of changed attributes. Replaced changes with the code
from AR::Dirty to work around that.


Updated by Felix Schäfer at 2011-05-21 12:06 am

Committed a fix in 6f809b826edf31b76c9e1743734aca6f975a8e42, the gist of the problem is described in the commit message, I'll copy it over here and close here once the CI confirms it works.

Updated by Felix Schäfer at 2011-05-21 05:29 am

Closing as the CVS tests pass on the CI too

The gist of the problem is: Changeset is a journalized model and :has_many changes, the problem is that this association creates a method changes on Changeset instances that overrides the method changes provided by ActiveRecord::Dirty that acts_as_journalized relied on. I've changed the one occurrence of changes in acts_as_journalized by the exact definition of the method as per ActiveRecord::Dirty to avoid the name clash.

  • Status changed from Open to Closed

Also available in: Atom PDF