Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

Can no longer access to server with basic HTTP authentication

Open spreiter opened this issue 4 years ago • 8 comments

My Setup

  • Operating System: macOS 10.14.6
  • App Version: 3.0.4
  • Installation type: dmg &
  • App Version: 3.0.3
  • Installation type: app Store
  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Description

After the update (first via App Store), both servers are not connected anymore. Server list lost?

Entering the url using https://username:[email protected] results in "No valid server found at the URL" Entering the url with https://xxx.org results in "Validating..." being stuck.

-> No subfolder used!

Using username and password of the HTTP authentication works with version 2.17.11

I also tried to add the server to the config.json file as recommended in #1796 without success.

Current Behavior

Does not connect

Expected Behavior

Does connect.

spreiter avatar Oct 17 '20 13:10 spreiter

I am also encountering this issue. Was trying to find a way to downgrade my MacOS clients to 2.17.9 to get them working again.

freddydopfel avatar Oct 17 '20 18:10 freddydopfel

The issue persists after upgrade to macOS 10.15 and macOS 11.

Also using the new release 3.1.0, nothing changed...

spreiter avatar Dec 21 '20 13:12 spreiter

Unfortunately still the same with version 3.2 (.1/.2).

spreiter avatar May 14 '21 08:05 spreiter

Since nothing changed on this topic, this comment is just to bump the issue 😉

At least entering the URL without username and password does not result in the process being stuck. But entering the URL with credentials still results in "No valid server found at the URL"

spreiter avatar Jun 17 '21 07:06 spreiter

Once again, bumping.

Still the same situation in version 3.5.

spreiter avatar Sep 07 '21 06:09 spreiter

This problem still persists in client version 3.7.1 (tested on Windows).

To elaborate further, the following error seems to be the cause (from DevTools -> Console, credentials and server address redacted): 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1337 Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': Request cannot be constructed from a URL that includes credentials: https://user:[email protected]/__meteor__/dynamic-import/fetch at i (6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1337) at 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1337 at 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1 i @ 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1337 (anonymous) @ 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1337 (anonymous) @ 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1 await in (anonymous) (async) a @ 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1 u @ 6823d82bbf984f80d3bbcb33799f26c97653a8df.js?meteor_js_resource=true:1 [server.url-1640080058484.log](https://github.com/RocketChat/Rocket.Chat.Electron/files/7751326/server.url-1640080058484.log)

The full log is attached server.url-1640080058484.log .

MartinHenselHLL avatar Dec 21 '21 09:12 MartinHenselHLL

Same problem here

Giovannilamotta avatar Apr 07 '22 18:04 Giovannilamotta

Same problem here

fundor333 avatar Aug 11 '22 09:08 fundor333

Even though I did not expect any changes, version 3.8.16 is still not capable of connection through basic HTTP authentication. :(

spreiter avatar Jan 11 '23 07:01 spreiter

Same issue here (on Linux)

nicolas-guerrier avatar Jan 24 '23 17:01 nicolas-guerrier

I believe it's for security concerns that it's disabled.

@jeanfbrito should we allow it?

preeesha avatar Feb 10 '24 09:02 preeesha

I believe it's for security concerns that it's disabled.

@jeanfbrito should we allow it?

I just found this info from Mozilla^1, where it is stated that the feature is deprecated and removed in Chromium. I was not aware of this fact!

I know that this authentication is maybe not preferred, but it prevents web crawlers to index the page.

spreiter avatar Feb 10 '24 16:02 spreiter

This is not supported on Desktop App.

jeanfbrito avatar Feb 15 '24 20:02 jeanfbrito