Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1373830 - File transfer dialog cannot be closed
File transfer dialog cannot be closed
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-gtk (Show other bugs)
7.3
x86_64 All
medium Severity medium
: rc
: ---
Assigned To: Victor Toso
SPICE QE bug list
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-07 04:41 EDT by Pavel Grunt
Modified: 2018-04-10 04:51 EDT (History)
14 users (show)

See Also:
Fixed In Version: spice-gtk-0.34-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1373725
Environment:
Last Closed: 2018-04-10 04:50:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0672 None None None 2018-04-10 04:51 EDT

  None (edit)
Description Pavel Grunt 2016-09-07 04:41:19 EDT
When transferring a file to a guest the file transfer dialog window cannot be closed

Version-Release number of selected component:
virt-viewer-2.0-11.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. drag'n'drop files to make the file transfer dialog appear
2. try to close the dialog

Actual results:
The "File transfer" dialog can't be closed

Expected results:
The "File transfer" dialog can be closed normally


+++ This bug was initially created as a clone of Bug #1373725 +++

Description of problem:
Disable spice filetransfer for guest, start guest, open remote-viewer, try to drag a file into guest from host, a "File transfer" dialog box pops up, but it can't be closed by click "X" or "cancel" or "right click + close"

Version-Release number of selected component:
libvirt-2.0.0-6.el7.x86_64
virt-viewer-2.0-11.el7.x86_64
spice-gtk3-0.31-5.el7.x86_64
spice-server-0.12.4-18.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a guest with spice graphic and filetransfer enable='no':
# virsh edit rhel7.3-0817
...
    <graphics type='spice' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
      <filetransfer enable='no'/>
    </graphics>

2. Start guest
# virsh start rhel7.3-0817

3. Connect to guest by remote-viewer:
# remote-viewer spice://<ip>:<port>

4. Drag a file from host into guest.

5. Try to close the "File transfer" dialog

Actual results:
The "File transfer" dialog can't be closed

Expected results:
The "File transfer" dialog can be closed normally

--- Additional comment from Pavel Grunt on 2016-09-07 04:35:08 EDT ---

There are two problems:
 1. the dialog showing up & transfer going on - spice server should tell spice-gtk, that file transfer is disabled
 2. the dialog window cannot be closed - that is virt-viewer's problem
Comment 1 Victor Toso 2017-05-30 10:00:53 EDT
Client side does not know that file-transfer is disabled in the host so the complete solution to the problem is not upstream yet. Moving to 7.5
Comment 2 Victor Toso 2017-07-03 09:43:50 EDT
This should potentially be fixed by [0], depending on expected behavior. It should pop up a dialog citing each file that has failed to transfer, without the rationale on why it has failed (probably by design). 

[0] https://lists.freedesktop.org/archives/spice-devel/2017-July/038469.html

The actual reason for failure can be seen as warning, for instance:
(remote-viewer:12620): virt-viewer-WARNING **: File transfer task 0x2a14b20 failed: The file transfer is disabled
Comment 7 Victor Toso 2017-11-16 04:37:44 EST
As per comment #1, virt-viewer does not receive any errors from spice-gtk when a file-transfer failed due the fact that file-transfer was disabled in the host.

The fix is in spice-gtk so I'm moving to spice-gtk component...
Comment 9 Victor Toso 2017-11-16 04:51:01 EST
For the record, patch which should fix this is

https://cgit.freedesktop.org/spice/spice-gtk/commit/?id=c021bb051fac1b66199
Comment 10 Radek Duda 2017-11-23 08:39:06 EST
Moving to verifies:

tested on client (rhel7.5):
virt-viewer-5.0-9.el7.x86_64
spice-gtk3-0.34-2.el7.x86_64

guest (rhel7.5):
spice-gtk3-0.34-2.el7.x86_64
spice-server-0.14.0-2.el7.x86_64
spice-glib-0.34-2.el7.x86_64

with single or multiple files xfer cancelling file xfer works ok.
Comment 13 errata-xmlrpc 2018-04-10 04:50:15 EDT
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.

https://access.redhat.com/errata/RHBA-2018:0672

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