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.
mysql2 incompatibility in WikiPage model (Bug #390)
Introduced with fec6eb782c01aa018813, there is an incompatibility with the mysql2 database adapter. One main feature of mysql2, besides being actively maintained, is that it is eagerly casting database values to matching ruby types.
In this case in app/models/wiki_page.rb:134 CP tries to convert a value retrieved from the database into a date. This works fine for most adapters. But in mysql2 this value is already a
Time. Ergo passing it to
Time.parse results in an error. Consequently, the rescue block is triggered and nil is assigned.
This misbehavior results in failing tests in
Pull request is at https://github.com/chiliproject/chiliproject/pull/50
- Assignee deleted (
- Status changed from Open to Ready for review