Modify ↓
Opened 19 years ago
Closed 19 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)
Note:
See TracTickets
for help on using tickets.



svn diff between trunk and my change