Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#2808 closed defect (wontfix)

sourceforge2trac importer does not work (with postgres)

Reported by: wichert@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.4
Severity: normal Keywords: sourceforge2trac unicode
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The sourceforge2trac contrib script fails due to not using the DB-API correctly and assuming sqlite internals. It also seems to cause segmentation faults whenever it tries to add a ticket with non-ASCII characters.

Attachments (1)

sf2trac.ptc (4.5 KB ) - added by wichert@… 16 years ago.

Download all attachments as: .zip

Change History (6)

by wichert@…, 16 years ago

Attachment: sf2trac.ptc added

comment:1 by wichert@…, 16 years ago

This patch tries to fix this. The solution is not optimal: it just does a nasty encode("ascii","replace) on all data to strip non-ASCII character. Unless a unicode-aware postgres connection is used this might be the only way to get this working unfortunately.

comment:2 by Jonas Borgström, 16 years ago

Well, I guess a simple .encode('utf-8') will work with UNICODE/UTF8 databases, right?

This will probably become a non-issue if/when the unicode branch is merged.

comment:3 by osimons, 15 years ago

Milestone: 1.0

Unicode branch merged quite some time ago (0.10), but would be nice to get verification that this ticket can be closed. #3521 with patch proves recent success with import, so hopefully someone can confirm this issue also for non-ascii characters.

comment:4 by anonymous, 15 years ago

I'm afraid I don't have either the data or resources to verify this; I ran into this for a one time migration and have not used or touched any sf trackers since.

comment:5 by Christian Boos, 15 years ago

Keywords: sourceforge2trac unicode added
Resolution: wontfix
Status: newclosed

So, to be reopened if needed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.