Bug 908321 - virt-cat fails on directory names "/dev/stdout: error in chunked encoding"
Summary: virt-cat fails on directory names "/dev/stdout: error in chunked encoding"
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 908255
TreeView+ depends on / blocked
 
Reported: 2013-02-06 12:35 UTC by Richard W.M. Jones
Modified: 2013-02-06 13:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 908255
Environment:
Last Closed: 2013-02-06 13:41:08 UTC


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-02-06 12:35:18 UTC
+++ This bug was initially created as a clone of Bug #908255 +++

Description of problem:

[root@hp-z220-01 images]# virt-cat  RHEL-Server-6.0-32-hvm.raw /etc                                                    
libguestfs: error: file receive cancelled by daemon
libguestfs: error: /dev/stdout: error in chunked encoding

Note it's wrong to use virt-cat with a directory name, but the
problem is that the real error message is lost.

Simple reproducer from within the libguestfs source tree:

$ ./run ./cat/virt-cat -a ./tests/guests/fedora.img /etc
libguestfs: error: file receive cancelled by daemon
libguestfs: error: /dev/stdout: error in chunked encoding

Comment 1 Richard W.M. Jones 2013-02-06 13:41:08 UTC
The following upstream fix:

https://github.com/libguestfs/libguestfs/commit/f9bafde5e7f1302ce7c5ea304e51a8d90a323b58

adds an extra check that the download file is not a directory,
and gives the following error:

$ ./run ./cat/virt-cat -a ./tests/guests/fedora.img /etc 
libguestfs: error: download: /etc: is a directory


Note You need to log in before you can comment on or make changes to this bug.