Actions
Defect #1355
opentrac importer error in convert_wiki_text
Start date:
2008-06-02
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
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.
Actions