import refuse to import some tarballs

Bug #487078 reported by vitaly.v.ch
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Nominated for 1.17 by vitaly.v.ch
Nominated for 1.18 by vitaly.v.ch
Nominated for 2.0 by vitaly.v.ch
BzrTools
Confirmed
Undecided
Unassigned

Bug Description

# LANG= bzr import cdk_avr_libc-1.4.4-i686-1.tgz avr-libc
bzr: ERROR: Tree transform is malformed [('overwrite', 'new-0', '')]
#

bzr.log:

Mon 2009-11-23 14:34:12 +0200
0.130 bzr arguments: [u'import', u'cdk_avr_libc-1.4.4-i686-1.tgz', u'avr-libc']
0.182 looking for plugins in /root/.bazaar/plugins
0.558 looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.560 Plugin name bzrtools already loaded
0.620 encoding stdout as sys.stdout encoding 'ANSI_X3.4-1968'
0.741 creating repository in file:///mnt/hd/a/1/downloads/ATMEL/soft/avr-libc/.bzr/.
0.792 creating branch <bzrlib.branch.BzrBranchFormat6 object at 0xb780394c> in file:///mnt/hd/a/1/downloads/ATMEL/soft/avr-lib
0.840 trying to create missing lock '/mnt/hd/a/1/downloads/ATMEL/soft/avr-libc/.bzr/checkout/dirstate'
0.842 opening working tree '/mnt/hd/a/1/downloads/ATMEL/soft/avr-libc'
0.896 opening working tree '/mnt/hd/a/1/downloads/ATMEL/soft/avr-libc'
3.134 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/command.py", line 13, in run_argv_aliases
    commands.Command.run_argv_aliases(self, argv, alias_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/command_classes.py", line 497, in run
    do_import(source, tree)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/upstream_import.py", line 276, in do_import
    import_tar(tree, tar_input)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/upstream_import.py", line 171, in import_tar
    import_archive(tree, tar_file)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/upstream_import.py", line 244, in import_archive
    for conflict in cook_conflicts(resolve_conflicts(tt), tt):
  File "/usr/lib/python2.5/site-packages/bzrlib/transform.py", line 2633, in resolve_conflicts
    raise MalformedTransform(conflicts=conflicts)
MalformedTransform: Tree transform is malformed [('overwrite', 'new-0', '')]

3.136 return code 3

Tags: tarball
Revision history for this message
vitaly.v.ch (vitaly-v-ch) wrote :
Revision history for this message
vitaly.v.ch (vitaly-v-ch) wrote :

root directory in that tarball is dot.

Revision history for this message
Aaron Bentley (abentley) wrote :

I don't think "also affects bzr" is true. I've done some work on this, and it's pretty clearly a problem in bzrtools. Unfortunately, it's hard to reproduce such a tarball in the test suite-- python's tar library automatically normalizes the paths. I can monkeypatch it, but that doesn't work in python 2.4.

Changed in bzr:
status: New → Invalid
Changed in bzr:
status: Invalid → Fix Committed
status: Fix Committed → New
status: New → Invalid
Jelmer Vernooij (jelmer)
Changed in bzrtools:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.