mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #836] Grabbing wrong favicon #586
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#586
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @Crow-Control on GitHub (Jan 30, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/836
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
@Crow-Control commented on GitHub (Jan 30, 2020):
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*@dani-garcia commented on GitHub (Jan 30, 2020):
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.@Crow-Control commented on GitHub (Jan 30, 2020):
@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 :)