Bug 32869 - Cockpit problems with firefox, edge and chrome. Needs updating.
Summary: Cockpit problems with firefox, edge and chrome. Needs updating.
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-18 19:19 CET by Ezequiel Partida
Modified: 2024-02-20 21:08 CET (History)
0 users

See Also:
Source RPM: cockpit-269-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Ezequiel Partida 2024-02-18 19:19:58 CET
I installed cockpit

Once I accessed the webUI using https://serverIP:9090/

I got an error that says:

____
This web browser is too old to run the Web Console (missing selector(:is():where()))
A modern browser is required for security, reliability, and performance.
Download a new browser for free

    Mozilla Firefox / Linux, Windows, macOS
    Google Chrome / Linux, Windows, macOS

Or use a bundled browser

    Microsoft Edge / Windows
    Apple Safari / macOS
____

I am using Firefox 115.7.0esr.

I also tested Google Chrome 121.0.6167.184 and Microsoft Edge 121.0.2277.98 with same results.

I found a solution that works with Chrome and Edge but Firefox still fails.

The solution is:

sed -i 's/is():where()/is(*):where(*)/' /usr/share/cockpit/static/login.js

I found it at:

https://cockpit-project.org/blog/login-issues.html


Probably this "fix" should be included on the mageia package.

Regars
Comment 1 Lewis Smith 2024-02-20 21:08:26 CET
That post is worth a read, but from Oct 2022:

"In most cases, update your servers. Cockpit 277, released last month, has the fix."

"Cockpit 277 by Garrett LeSage – Sep 22, 2022
Login: Fix “This web browser is too old” error with upcoming browsers
Newer, upcoming browser versions have improved next-level support for :is() and :where() selectors. Cockpit was checking for support an empty usage which passed on browsers in the earlier (current as of writing) implementation. However, browsers have recently updated their parsing support for “Forgiving Selector Parsing”, which caused the newer development versions of Firefox, Chrome, and WebKit to fail this check, preventing the browsers from logging into Cockpit.

The check has now been adjusted so current and upcoming browser versions all pass.

Additionally, hotfixes for older versions of Cockpit have been published for various distributions. If you have an error while trying to log in with a new browser on an older Cockpit version, please upgrade your version of Cockpit"

The application is updated about twice a month ! and the latest is Cockpit 311  Feb 14, 2024.

The first thing to do is for us to update it from v269... The latest we have in Cauldron is version 277 - the vital fix. Even that pushed to M9 should fix this problem. But why not more recent?

Different packagers update Cockpit, so assigning globally.

Summary: Cockpit problems with firefox, edge and chrome. => Cockpit problems with firefox, edge and chrome. Needs updating.
Source RPM: (none) => cockpit-269-2.mga9.src.rpm
Assignee: bugsquad => pkg-bugs


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