Bug 1730666

Summary: [machines] There is no file downloaded after click 'Launch Remote Viewer' button on Edge
Product: Red Hat Enterprise Linux 8 Reporter: YunmingYang <yunyang>
Component: cockpit-appstreamAssignee: Katerina Koukiou <kkoukiou>
Status: CLOSED ERRATA QA Contact: YunmingYang <yunyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.1CC: leiwang, mpitt, wshi, xchen
Target Milestone: rc   
Target Release: 8.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 236 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:53:08 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 YunmingYang 2019-07-17 10:06:49 UTC
Description of problem:
If using 'Graphics Console in Desktop Viewer', there should be a file downloaded by clicking Launch Remote Viewer' button.When clicking it on Edge, there are no file downloaded, and there is also a warning message shown on the web console.

Version-Release number of selected component (if applicable):
cockpit-machines-196-1.el8.noarch
libvirt-dbus-1.2.0-2.module+el8.1.0+2983+b2ae9c0a.x86_64
Miscrosoft Edge 44.18362.1.0

How reproducible:
100%

Steps to Reproduce:
1. Open cockpit-machines with Edge
2. Click 'Launch Remote Viewer' button of a running VM

Actual results:
There is no file downloaded after click 'Launch Remote Viewer' button on Edge

Expected results:
There should be a file downloaded after clicking 'Launch Remote Viewer' button on edge

Additional info:
The warning message which is shown on the web console:
CSP14309: Unkown directive 'block-all-mixed-content in Content-Security-Policy - directive will be ignored.'

That will also appear in the Edge 42.17134.1.0.

Comment 3 Katerina Koukiou 2021-01-22 12:38:04 UTC
Yunming can you please try to reproduce this bug with a newer version of cockpit-machines?

I just tried with 236 and microsoft-edge-dev-89.0.767.0-1.x86_64.rpm which I downloaded from https://www.microsoftedgeinsider.com/en-us/.

With this combination of newer edge and newer cockpit-machines I can't reproduce this.

Comment 4 YunmingYang 2021-01-25 07:02:41 UTC
Of course, I try it with cockpit-machines-236-1 and microsoft-edge-88.0.705.50(Official building) in a windows VM, and the issue is disappear with the combination.

Comment 5 Katerina Koukiou 2021-01-25 08:19:54 UTC
This was most likely fixed by:

commit 2ab1b5ebd71e3772c6494e25e96b791ab2738c00
Author: Katerina Koukiou <kkoukiou>
Date:   Fri Dec 11 12:23:53 2020 +0100

    machines: Replace DesktopViewer with upstream component from PF4

Comment 6 Katerina Koukiou 2021-01-27 10:47:29 UTC
Note: For the older versions of Edge, which are not based on Chromium this is still an issue. We don't plan to investigate further or fix this bug for the non-chromium based Edge.

Comment 10 YunmingYang 2021-02-07 03:11:09 UTC
Test Versions:
cockpit-machines-237-1.el8.noarch
cockpit-236-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64


Test Steps:
1. Open cockpit-machines with Edge (which is based on chromium)
2. Click 'Launch Remote Viewer' button of a running VM

Test Results:
There is a file downloaded after clicking 'Launch Remote Viewer' button

According to the results, move the status to VERIFIED.

Comment 12 errata-xmlrpc 2021-05-18 15:53:08 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 (cockpit-appstream bug fix and enhancement update), 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-2021:1875