Edgewall Software
Modify

Opened 10 years ago

Last modified 9 years ago

#8427 new defect

bugzilla2trac.py dies inserting attachment with OSError Errno 21 against bugzilla 2222

Reported by: rmcguire@… Owned by:
Priority: normal Milestone: not applicable
Component: contrib Version: 0.11.4
Severity: minor Keywords: bugzilla2trac
Cc: Branch:
Release Notes:
API Changes:

Description

While trying to convert a bugzilla (version 2.22.2) database to trac using contrib/bugzilla2trac.py I run into an issue for some reason with one of the ticket attachments. Here is the traceback:

inserting ticket 113 -- Golden config phase 2
    ->inserting attachment '' for ticket 113 -- Golden Config Phase 2 requirements
Traceback (most recent call last):
  File "bugzilla2trac.py", line 913, in ?
    main()
  File "bugzilla2trac.py", line 910, in main
    convert(BZ_DB, BZ_HOST, BZ_USER, BZ_PASSWORD, TRAC_ENV, TRAC_CLEAN)
  File "bugzilla2trac.py", line 836, in convert
    trac.addAttachment(author, a)
  File "bugzilla2trac.py", line 408, in addAttachment
    attachment.insert(filename, filedata, filesize, datetime2epoch(time))
  File "/usr/lib/python2.4/site-packages/Trac-0.11.4-py2.4.egg/trac/attachment.py", line 222, in insert
    filename))
  File "/usr/lib/python2.4/site-packages/Trac-0.11.4-py2.4.egg/trac/util/__init__.py", line 80, in create_unique_file
    return path, os.fdopen(os.open(path, flags, 0666), 'w')
OSError: [Errno 21] Is a directory: '/stats/trac/attachments/ticket/113/'

It appears it is for some reason attempting to insert a blank attachment but the ticket in bugzilla looks normal. Any idea on a quick fix to get around this?

Thanks!

-Ryan

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 10 years ago

Keywords: bugzilla2trac added
Milestone: 1.0
Severity: normalminor

comment:2 by Christian Boos, 10 years ago

Milestone: 1.0not applicable

comment:3 by Jeroen Ruigrok van der Werven, 9 years ago

Owner: Jeroen Ruigrok van der Werven removed

comment:4 by Christian Boos, 9 years ago

Component: generalcontrib

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set.
The owner will be changed from (none) to anonymous.

Add Comment


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