RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 804187 - USB dialog should provide some help when no device available.
Summary: USB dialog should provide some help when no device available.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: spice-gtk
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Christophe Fergeau
QA Contact: Desktop QE
URL:
Whiteboard:
: 868106 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-16 19:06 UTC by Marc-Andre Lureau
Modified: 2013-02-21 08:47 UTC (History)
13 users (show)

Fixed In Version: spice-gtk-0.14-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:47:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0343 0 normal SHIPPED_LIVE spice-gtk bug fix and enhancement update 2013-02-20 20:53:54 UTC

Description Marc-Andre Lureau 2012-03-16 19:06:25 UTC
The redirection dialog can feel a bit strange when there is no device to redirect.

It could be useful to provide a help message indicating that there is no device to redirect yet, and that the user can insert a USB device to redirect, and some related guidance.

Comment 4 RHEL Program Management 2012-07-10 08:50:04 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2012-07-11 02:00:27 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 6 Daniel Berrangé 2012-07-26 17:22:11 UTC
The guts of the USB device selection dialog are provided by the following function

  spice_usb_device_widget_new

this is part of the spice-client-gtk library

Comment 9 Milan Barta 2012-10-15 11:43:51 UTC
Tested on spice-gtk-0.14-3.el6.x86_64 containing the fix from comment 7.

When the USB device selection dialog window from remote-viewer connected to a VM is invocated, there are no USB devices listed for redirection even though they are physically present.
Only the newly provided message saying "No USB devices detected" is shown.

Comment 10 Marc-Andre Lureau 2012-10-15 12:41:30 UTC
(In reply to comment #9)
> Tested on spice-gtk-0.14-3.el6.x86_64 containing the fix from comment 7.
> 
> When the USB device selection dialog window from remote-viewer connected to
> a VM is invocated, there are no USB devices listed for redirection even
> though they are physically present.
> Only the newly provided message saying "No USB devices detected" is shown.

That looks like a different bug then. The original bug I reported is that there was no help message, and now there is one.

If your device is not listed, there might be several reasons. What USB device is it? When did you plug the device?

Comment 11 Milan Barta 2012-10-15 13:24:46 UTC
Ok, there is the help message now. But the problem is the message is there no matter what USB device is connected.

My lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0a5c:217f Broadcom Corp. Bluetooth Controller
Bus 001 Device 004: ID 17ef:100a Lenovo ThinkPad Mini Dock Plus Series 3
Bus 001 Device 005: ID 17ef:480f Lenovo Integrated Webcam [R5U877]
Bus 001 Device 006: ID 046d:c069 Logitech, Inc. M500 Laser Mouse
Bus 001 Device 007: ID 046a:0011 Cherry GmbH G83 (RS 6000) Keyboard
Bus 002 Device 004: ID 13fe:3100 Kingston Technology Company Inc. 2/4 GB stick

None of theese devices are listed in the dialog. Only the "No USB devices detected" message is shown there.

Auto redirection works fine, the plugged device gets connected and still doesn't show up in the USB device dialog.

Comment 12 Christophe Fergeau 2012-10-15 19:40:44 UTC
The patch also contains the corresponding git commit log which can be found at http://cgit.freedesktop.org/spice/spice-gtk/commit/?id=0ede57e56b84fba4db2f3578541ce3e0eb06bcb3

Among other things, it contains this:
"This can be tested with
diff --git a/gtk/usb-device-widget.c b/gtk/usb-device-widget.c
index b1bf090..660ea03 100644
--- a/gtk/usb-device-widget.c
+++ b/gtk/usb-device-widget.c
@@ -220,6 +220,11 @@ static GObject *spice_usb_device_widget_constructor(
                      G_CALLBACK(device_error_cb), self);

     devices = spice_usb_device_manager_get_devices(priv->manager);
+    if (devices) {
+        g_ptr_array_unref(devices);
+        devices = NULL;
+    }
+
     if (!devices)
         goto end;"

and it seems the %patch command in the .spec picked this part of the .patch as if this was something to apply rather than just some comment... I've observed this when running rhpkg prep, and having this hunk in the build explains what you are seeing.

Comment 15 Christophe Fergeau 2012-10-17 13:14:57 UTC
Pushed a new build which should address this issue.

Comment 17 Christophe Fergeau 2012-10-19 08:26:16 UTC
*** Bug 868106 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2013-02-21 08:47:05 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/RHBA-2013-0343.html


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