Bug 1440129

Summary: Error message after copy-paste same file to Win Guest
Product: Red Hat Enterprise Linux 7 Reporter: Radek Duda <rduda>
Component: spice-vdagentAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED DUPLICATE QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: astepano, pgrunt, rbalakri, spice-qe-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-07 11:34:44 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:
Embargoed:

Description Radek Duda 2017-04-07 11:03:47 UTC
Description of problem:
After file with the same name to Win Guest (which is already on Guest's desktop), ugly error meassage dialog appears.

Version-Release number of selected component (if applicable):
Client (rhel7.4):
virt-viewer-5.0-2.el7.x86_64
spice-gtk3-0.33-2.el7.x86_64

Guest - Win10/Win7 tested
vdagent 1.1.4.1002

How reproducible:
always

Steps to Reproduce:
1.Start Win Guest (win7/10 tested)
2.Copy some $file_1 from Client to Guest (drag&drop), or crate any $file_1 in guest (Desktop directory)
3. Copy $file_2 with the same filename as $file_1 from Client to Guest (drag&drop) (does not have to be the same file, only must have the same filename)

Actual results:
Error message dialog window appears with text: "An error caused the following file transfers to fail: $filename".

and in the spice-debug log:

(remote-viewer:22566): GSpice-DEBUG: spice-widget.c:539 drag_data_received_callback: drag a file
(remote-viewer:22566): GSpice-DEBUG: spice-file-transfer-task.c:675 transfer of file 1595_001.pdf has started
(remote-viewer:22566): GSpice-DEBUG: channel-main.c:3104 Insert a xfer task:4 to task list
(remote-viewer:22566): GSpice-DEBUG: channel-main.c:1845 xfer-task 4 received response 2
(remote-viewer:22566): GSpice-DEBUG: spice-file-transfer-task.c:303 File /home/rduda/Downloads/1595_001.pdf xfer failed: The spice agent reported an error during the file transfer
(remote-viewer:22566): GSpice-DEBUG: channel-main.c:2885 Transfer failed (0x55ad17c8aec0) Transferring 1 files: 0 succeed, 0 cancelled, 1 failed

(remote-viewer:22566): GSpice-WARNING **: File transfer failed with error: Transferring 1 files: 0 succeed, 0 cancelled, 1 failed
(remote-viewer:22566): Spice-DEBUG: channel-main.c:2904:file_transfer_operation_free: Freeing file-transfer-operation 0x55ad17c8aec0

(remote-viewer:22566): virt-viewer-WARNING **: File transfer task 0x55ad1810d580 failed: The spice agent reported an error during the file transfer


Expected results:
The best would be to unify the behaviour of Win guests with rhel guests: new file is created with filename suffix: "($number_of_same_filenames_in_folder)".

Comment 2 Pavel Grunt 2017-04-07 11:08:05 UTC
> 
> Expected results:
> The best would be to unify the behaviour of Win guests with rhel guests: new
> file is created with filename suffix:
> "($number_of_same_filenames_in_folder)".
>
cannot be done by the client - you should move it to windows agent

Comment 3 Andrei Stepanov 2017-04-07 11:34:44 UTC

*** This bug has been marked as a duplicate of bug 1410181 ***