mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
Grabbing wrong favicon #1831
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PrivatePuffin on GitHub.
Subject of the issue
It seems Bitwarden_rs always tries to download favicons from domain-root and ignores actual favicon settings on the login page. this leads to an abundance of errors/warnings and timeouts.
Your environment
Steps to reproduce
Add a login for this site:
https://signin.netapp.com/oamext/login.html
Look at the logs, notice it tries to download the favicon from:
http://signin.netapp.com/favicon.icoNotice how it fails to download the icon.
Now look at the page network tab, notice the actual URL for the favicon is:
https://signin.netapp.com/oamext/images/favicon.icoNow look at the page source, notice that the favicon is described here:
Expected behaviour
It should respect the favicon setting of the login pages.
Actual behaviour
It always tries to grab domain-root favicons and totally ignores actual favicon settings.
Relevant logs
@dani-garcia commented on GitHub:
Well the clients only send the subdomain and domain, in this case the server gets
https://signin.netapp.com, so if the image can't be obtained from there then there isn't much we can do other than hardcode the value.@PrivatePuffin commented on GitHub:
This problem mostly shows with websites that host a login page on a sub page, but don't host anything on the login subdomain itself.
Another example:
https://signin.ea.com/doesn't host anything (and errors out on the favicon too)Because this is the real login page:
https://signin.ea.com/p/web2/login*LOGIN DATA STRING*@PrivatePuffin commented on GitHub:
@dani-garcia Thats quite a major design oversight by upstream. As favicon locations are not actually standardised at all. But indeed, not yours to fix, you can't magically summon what you don't have.
Thanks for the reply :)