Edgewall Software
Modify

Opened 15 years ago

Closed 5 years ago

#8427 closed defect (wontfix)

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

Reported by: rmcguire@… Owned by:
Priority: normal Milestone:
Component: contrib Version: 0.11.4
Severity: minor Keywords: bugzilla2trac
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (5)

comment:1 by Christian Boos, 15 years ago

Keywords: bugzilla2trac added
Milestone: 1.0
Severity: normalminor

comment:2 by Christian Boos, 15 years ago

Milestone: 1.0not applicable

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

Owner: Jeroen Ruigrok van der Werven removed

comment:4 by Christian Boos, 15 years ago

Component: generalcontrib

comment:5 by Ryan J Ollos, 5 years ago

Milestone: not applicable
Resolution: wontfix
Status: newclosed

bugzilla2trac.py is no longer maintainer by Trac developers and is being deleted from the trunk. If you need the plugin, please consider copying it from 1.4-stable and creating a plugin on trac-hacks.org.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.