Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3818 closed defect (duplicate)

bugzilla2trac.py incompatible to bugzilla 2.22

Reported by: Norman Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10rc1
Severity: normal Keywords: bugzilla2trac.py
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I want to copy the bugzilla tickets into trac. While running bugzilla2trac.py I've got this message:

inserting ticket 411 -- warengruppen und spartennummer
Traceback (most recent call last):
  File "./bugzilla2trac.py", line 883, in ?
    main()
  File "./bugzilla2trac.py", line 880, in main
    convert(BZ_DB, BZ_HOST, BZ_USER, BZ_PASSWORD, TRAC_ENV, TRAC_CLEAN)
  File "./bugzilla2trac.py", line 810, in convert
    trac.addAttachment(author, a)
  File "./bugzilla2trac.py", line 398, in addAttachment
    filedata = StringIO.StringIO(a['thedata'].tostring())
KeyError: 'thedata'

It seems that bugzilla has changed its database structure in version 2.22. There is a table attach_data where attachments are saved. This table is not queried in the script. I rewrite the SQL statement in bugzilla2trac.py (see my attachment). It works. Maybe you want to change your bugzilla2trac.py script to be compatible with bugzilla 2.22.

Attachments (1)

bugzilla2trac.py.diff (710 bytes ) - added by Norman 18 years ago.
svn diff between trunk and my change

Download all attachments as: .zip

Change History (2)

by Norman, 18 years ago

Attachment: bugzilla2trac.py.diff added

svn diff between trunk and my change

comment:1 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

See now #4724.

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.