Defect #1355

trac importer error in convert_wiki_text

Added by Christoph Koehler over 11 years ago. Updated over 11 years ago.

Status:NewStart date:2008-06-02
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Importers
Target version:-
Resolution: Affected version:0.7.1

Description

When passing the description of a ticket to this method at line 360, the method parses the description wrongly for tickets. This is the text that was set as description:
<a href=http://myspace.iega.info/sm.html#970999997 >myspace image uploader</a> [url=http://myspace.iega.info/sm.html#1508845067]myspace image uploader[/url] http://myspace.iega.info/sm.html 1297564108

On line 251, $1 had the value of 970999997, which passed the if condition and tried to stick it into the index of TICKET_MAP, which aborted the rake task with error "index too big"

The solution in this case was setting the if to test for length < 9 instead of 10, but a change in the algorithm may be required.

Hope that info helped.

History

#1 Updated by Christoph Koehler over 11 years ago

  • Assignee set to Jean-Philippe Lang

Also available in: Atom PDF