Bug 1323773

Summary: Cannot drag-and-drop file in size more than 1GB.
Product: Red Hat Enterprise Linux 7 Reporter: Andrei Stepanov <astepano>
Component: spice-vdagentAssignee: 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: 7.3CC: rbalakri
Target Milestone: rc   
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-04 16:38:55 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:

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

VM is RHEL7.3RC: spice-vdagent-0.14.0-10.el7.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

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 2 Andrei Stepanov 2016-04-04 16:38:55 UTC
I cannot reproduce the bug with Linux client using virt-viewer-2.0-7.el7.x86_64

Re-assign on mingw-virt-viewer.

I cannot it just re-assing. Bugzilla fails with: A value must be set for the 'oVirt Team' field. I am going to open as a new bug.