Bug 1323776

Summary: Cannot drag-and-drop file in size more than 1GB.
Product: Red Hat Enterprise Virtualization Manager Reporter: Andrei Stepanov <astepano>
Component: mingw-virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED NOTABUG QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.6.2CC: cfergeau, gklein, lsurette, rbalakri, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-05 08:42:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Spice RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andrei Stepanov 2016-04-04 16:42:45 UTC
Drag-and-drop is broken for file size > 1GB.

VM is:
spice-vdagent-0.14.0-10.el7.x86_64
or 
spice-vdagent-0.14.0-11.el6.x86_64

Client is Windows7SP1:
rpm -qf /usr/share/spice/virt-viewer-x64.msi 
rhevm-spice-client-x64-msi-3.6-6.el6.noarch
rpm -q --changelog rhevm-spice-client-x64-msi
* Mon Jan 04 2016 Uri Lublin <uril> - 3.6-6
- mingw-virt-viewer 2.0.8
- mingw-spice-gtk 0.26-10
- mingw-libusbx 1.0.20-1
- spice-usbdk-win 1.0-10
- Send requests to usbdk asynchronously (rhbz#1144043)

Host is Rhel7.2.z
kernel-3.10.0-327.10.1.el7.x86_64
qemu-kvm-rhev-2.3.0-31.el7_2.10.x86_64

How reproducible: always

I cannot reproduce the bug with Linux client using virt-viewer-2.0-7.el7.x86_64

Steps to Reproduce:

1. Prepare file in size 1GB on client:

For example, using powershell: 

 $file = ("{0}\desktop\1GB.txt" -f $Env:USERPROFILE)
 $fileStream = New-Object System.IO.StreamWriter -ArgumentList ([IO.File]::Open($file,"Create"))
 $fileStream.Write("123456!")
 $fileStream.BaseStream.SetLength(1024*1024*1024*1)
 $fileStream.Close()
 $fileStream = New-Object System.IO.StreamWriter -ArgumentList ([IO.File]::Open($file,"Append"))
 $fileStream.Write("ZZZ")
 $fileStream.Close()


Install fciv https://support.microsoft.com/en-us/kb/889768 
Install handle from https://technet.microsoft.com/en-us/sysinternals/handle.aspx

2. Check md5 for the file.
fciv -md5 <file>
3. Login to VM.
4. Drag and drop file to VM.
5. Wait enough time.

On VM check md5sum for the copied file. MD5 will be different from client's file.

spice-vdagents doesn't close file on the VM (check with 'fuser')

remote-viewer doesn't close file on the client (check with 'handle' in powershell)

Comment 1 Andrei Stepanov 2016-04-05 08:42:13 UTC
I am sorry. There is no bug. It was necessary to wait more time. After a few minutes file was fully copied to VM.