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 1339722 - [RFE] Make it easier to install and use the RHEVM SPICE client
Summary: [RFE] Make it easier to install and use the RHEVM SPICE client
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-viewer
Version: 7.4
Hardware: x86_64
OS: Windows
medium
medium
Target Milestone: rc
: 7.6
Assignee: Virt Viewer Maint
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: CEECIR_RHV43_proposed
TreeView+ depends on / blocked
 
Reported: 2016-05-25 17:23 UTC by Jason
Modified: 2019-11-14 08:09 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-29 21:57:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jason 2016-05-25 17:23:52 UTC
Description of request:

The Native Spice Client should not prompt the user to open a file.

Version-Release number of selected component (if applicable):

N/a

Would Windows file associations be useful here?  

The idea is to associate .vv files with the virt-viewer app.  The interface is different on different versions of Windows. 

 In Windows 10, Start...Settings...Defaults apps...Choose Default apps by file type. 

I wonder if there's a way to make the virt-viewer installation do that automatically?

Comment 1 Greg Scott 2016-05-25 18:09:49 UTC
Windows file associations are part of the solution, but the browser still prompts about opening the .vv file by default. 

Even if we have the ability to change browser behavior, I don't like getting rid of the prompt because it breaks browser security best practice.  When a user right-clicks in the RHEV admin portal to open a console, he launches virt-viewer with instructions to open the associated .vv file.  From the browser point of view, it's no different than opening a document with, say, MS Word, or opening a .zip file, and the best security practice is to always prompt the user about opening files associated with any app.  

The deeper issue, and something we should fix is, making it easy to install virt-viewer on the client system.  Virt-viewer is the name of the SPICE client.  Right now, to install virt-viewer, the user must right-click on the VM, select "Console Options," and then go to "Console Client Resources" at the bottom of the popup window, and from that browser window, make a decision and select an appropriate choice.  

We can make this navigation simpler - right-click on the virtual machine and one of the menu choices should be to install the SPICE console client.  That could lead to a popup with an explanation about the browser will prompt to run the .vv file when launching a console, with a continue button to install virt-viewer.

Can we do something simple like this during the 3.6 livecycle?

- Greg

Comment 12 Marina Kalinin 2018-02-01 16:06:14 UTC
1. Why we are talking about windows only? It is the same problem on Fedora (or other OS probably) as well. Recently, we had a case when the package installed, but it was not automatically associated with the vv file and required manual association in the browser.

2. So, the question is how to make the browser to be aware of .vv file and provide the association. Not exactly my expertise on how to make it done. What sounds reasonable to me: RHV should perform the action once we click on the console button on the portal. It should check whether the vv file has associated with remote-viewer yet or not. And if not - associate it. At the same time, it might be possible that the viewer is not installed and we should prompt the user to install it right there. 
The biggest problem right now is that it just opens a vv file and the end user has zero knowledge what to do next. This is wrong. We should ideally install and associate, or provide direct instruction. Right there.

I hope this helps.

Comment 13 Martin Tessun 2018-02-06 08:41:24 UTC
(In reply to Marina from comment #12)
> 1. Why we are talking about windows only? It is the same problem on Fedora
> (or other OS probably) as well. Recently, we had a case when the package
> installed, but it was not automatically associated with the vv file and
> required manual association in the browser.
> 

That will always be the case, as every browser handles this differently. So either the ones delivering the software within the company need to ship the "desired" configuration, or it needs to be done manually the first time the browser is used for this purpose.

> 2. So, the question is how to make the browser to be aware of .vv file and
> provide the association. Not exactly my expertise on how to make it done.
> What sounds reasonable to me: RHV should perform the action once we click on
> the console button on the portal. It should check whether the vv file has
> associated with remote-viewer yet or not. And if not - associate it. At the
> same time, it might be possible that the viewer is not installed and we
> should prompt the user to install it right there. 
> The biggest problem right now is that it just opens a vv file and the end
> user has zero knowledge what to do next. This is wrong. We should ideally
> install and associate, or provide direct instruction. Right there.

If there would just be one browser out there, I believe this would be possible. Unfortunately there are tons out there and there is no central approach to associate the downloaded files with a software.
Unfortunately this has to be done by the user or the admin who is responsible for the Browser configuration.

Let's assume we do it for Firefox. The next user is using Chrome, or Safari will still not have that association.
Handling all possible browesers is not feasible here as well.

The only "help" I can think of is providing some text that the .vv file needs to be associated with the appropriate program (even there are more than one, but typically this will be remote-viewer).


> 
> I hope this helps.

Comment 14 Christophe Fergeau 2018-02-15 09:42:48 UTC
(In reply to Marina from comment #12)
> 1. Why we are talking about windows only? It is the same problem on Fedora
> (or other OS probably) as well. Recently, we had a case when the package
> installed, but it was not automatically associated with the vv file and
> required manual association in the browser.
> 
> 2. So, the question is how to make the browser to be aware of .vv file and
> provide the association. Not exactly my expertise on how to make it done.
> What sounds reasonable to me: RHV should perform the action once we click on
> the console button on the portal. It should check whether the vv file has
> associated with remote-viewer yet or not. And if not - associate it. At the
> same time, it might be possible that the viewer is not installed and we
> should prompt the user to install it right there. 
> The biggest problem right now is that it just opens a vv file and the end
> user has zero knowledge what to do next. This is wrong. We should ideally
> install and associate, or provide direct instruction. Right there.

Marina, it's not fully clear to me what you mean exactly by "association". Do you mean that the browser should automatically open .vv files with remote-viewer without any prompts? Or is it enough to have the browser show a prompt to save the file, or open it with remote-viewer? (which you say was not working in 1.)

As of today, remote-viewer should be "associated" with .vv file both on Linux and Windows in the sense that the web browser prompt will suggest to either save the file, or open it with remote-viewer. If this is not working, this is a bug that we should fix.

Getting rid of that prompt altogether might not be easy as others have already said in the bug, and maybe not even desirable from a security point of view.

Then I've seen mentions in that bug of UI/doc improvements which could be made on the RHV side of things, if that's needed too, I'd suggest opening separate bugs rather than talking about multiple different things at once in that bug.

Comment 15 Marina Kalinin 2018-02-21 01:12:38 UTC
(In reply to Christophe Fergeau from comment #14)
> (In reply to Marina from comment #12)
> > 1. Why we are talking about windows only? It is the same problem on Fedora
> > (or other OS probably) as well. Recently, we had a case when the package
> > installed, but it was not automatically associated with the vv file and
> > required manual association in the browser.
> > 
> > 2. So, the question is how to make the browser to be aware of .vv file and
> > provide the association. Not exactly my expertise on how to make it done.
> > What sounds reasonable to me: RHV should perform the action once we click on
> > the console button on the portal. It should check whether the vv file has
> > associated with remote-viewer yet or not. And if not - associate it. At the
> > same time, it might be possible that the viewer is not installed and we
> > should prompt the user to install it right there. 
> > The biggest problem right now is that it just opens a vv file and the end
> > user has zero knowledge what to do next. This is wrong. We should ideally
> > install and associate, or provide direct instruction. Right there.
> 
> Marina, it's not fully clear to me what you mean exactly by "association".
> Do you mean that the browser should automatically open .vv files with
> remote-viewer without any prompts? Or is it enough to have the browser show
> a prompt to save the file, or open it with remote-viewer? (which you say was
> not working in 1.)
Yes. This.
The browser(or whatever else) should detect the software installed and associate the vv file with it. If the relevant software is not yet installed, we need to inform the user what should be their next step.
> 
> As of today, remote-viewer should be "associated" with .vv file both on
> Linux and Windows in the sense that the web browser prompt will suggest to
> either save the file, or open it with remote-viewer. If this is not working,
> this is a bug that we should fix.
> 
> Getting rid of that prompt altogether might not be easy as others have
> already said in the bug, and maybe not even desirable from a security point
> of view.
> 
> Then I've seen mentions in that bug of UI/doc improvements which could be
> made on the RHV side of things, if that's needed too, I'd suggest opening
> separate bugs rather than talking about multiple different things at once in
> that bug.


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