Project

General

Profile

Actions

Patch #5764

open

migrate_from_trac does not support trac 0.12

Added by Michalis Miatidis over 14 years ago. Updated over 11 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Importers
Start date:
2010-06-27
Due date:
% Done:

0%

Estimated time:

Description

I attempted to migrate a trac 0.12 project to Redmine 0.9.4 and encountered the following two errors:

1. I had no clue that the project ID should be given in lowercase:

...
Target project identifier []: ETrackProject
Unable to create a project with identifier 'ETrackProject'!
rake aborted!
undefined method `reload' for nil:NilClass
C:/redmine-0.9.4/lib/tasks/migrate_from_trac.rake:685:in `target_project_identifier'
...

2. Importer was not able to handle time format of trac 0.12 database. Trac seems to keep times as Epoch at fixed length adding trailing '0's.

...
Migrating components................................
Migrating milestones.rake aborted!
bignum too big to convert into `long'
C:/redmine-0.9.4/lib/tasks/migrate_from_trac.rake:104:in `at'
...

I attach a patch that resolved for me the above. I am not sure if it remains compatible with trac 0.11


Files

migrate_from_trac.diff (1.35 KB) migrate_from_trac.diff Michalis Miatidis, 2010-06-27 13:36

Related issues

Related to Redmine - Defect #6868: migrate_from_trac and trac 0.12Reopened2010-11-11

Actions
Related to Redmine - Patch #14567: migrate_from_trac.rake does not convert timestamps in Trac database version 23New

Actions
Actions

Also available in: Atom PDF