Bug 908255

Summary: error message didn't translate to user language
Product: Red Hat Enterprise Linux 6 Reporter: Mohua Li <moli>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.4CC: bfan, leiwang, wshi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libguestfs-1.20.9-5.el6 Doc Type: Bug Fix
Doc Text:
Cause: Trying to download a file which is in fact a directory, using the guestfs_download API / guestfish 'download' command. Consequence: Downloading a directory using the guestfs_download API or guestfish 'download' command is an error. However libguestfs would get confused and the lose protocol synchronization instead. Fix: Test if the source of the download is a directory and return an error if so. Result: Trying to download a directory will print an error instead of getting confused.
Story Points: ---
Clone Of:
: 908321 908322 (view as bug list) Environment:
Last Closed: 2013-11-21 04:42:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 908321, 908322, 958183    
Bug Blocks:    

Description Mohua Li 2013-02-06 09:22:33 UTC
Description of problem:

the error message didn't translate to user language, when try to view a folder by virt-cat, like below, 


[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



[root@hp-z220-01 images]# virt-tar -x rhel6.32bit /boot/gurb grub.tar
                                                  ^^^^^^^^^^^ 
grub.tar: error in chunked encoding at /usr/bin/virt-tar line 272.




Version-Release number of selected component (if applicable):
libguestfs-tools-c-1.16.34-2.el6.x86_64

Comment 7 Richard W.M. Jones 2013-06-28 11:10:47 UTC
Fixed by the rebase (bug 958183).

Comment 12 bfan 2013-09-17 06:16:48 UTC
Verified with libguestfs-1.20.11-1.el6.x86_64

# virt-cat RHEL-Server-6.0-32-hvm.raw /etc
libguestfs: error: download: /etc: is a directory

# virt-tar -x RHEL-Server-6.0-32-hvm.raw /boot/gurb grub.tar
tar_out: stat: /boot/gurb: No such file or directory at /usr/bin/virt-tar line 272.

Error message are already translated, so change the status to verified

Comment 14 errata-xmlrpc 2013-11-21 04:42:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-1536.html