Project

General

Profile

Actions

Patch #719

closed

rake trac migration improvement

Added by Sebastian Jaekel almost 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-02-22
Due date:
% Done:

100%

Estimated time:

Description

I have tried to import my old trac project and came across a problem while importing tickets. My problem was that i had references to another request system in the wiki text which looked like a trac ticket number but were longer. So the parser tried to convert an invalid ticket number which resulted in an abort. I have attached a small patch which limits the maximum length of a ticket number to a value of 8 characters.


Files

patch_rake_trac.patch.bz2 (373 Bytes) patch_rake_trac.patch.bz2 Sebastian Jaekel, 2008-02-22 17:21
Actions #1

Updated by Jean-Philippe Lang almost 18 years ago

So the parser tried to convert an invalid ticket number which resulted in an abort.

Could you give some details please ? Did you get an error ?

Actions #2

Updated by Sebastian Jaekel almost 18 years ago

Yes, while migrating tickets, rake fails with the following error message:

..........rake aborted
bignum too big to convert into `long'

The problem here is that i have some external links in my Wiki pages which link to another request system, the links look exactly like a trac ticket link, but are much longer eg.

#200509220001

Actions #3

Updated by Jean-Philippe Lang almost 18 years ago

Thanks for the information. I'll fix it.

Actions #4

Updated by Jean-Philippe Lang almost 18 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r1175.

Actions

Also available in: Atom PDF