Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Skip URL previews of login pages #3440

Open
ptman opened this issue Jun 25, 2018 · 3 comments
Open

Skip URL previews of login pages #3440

ptman opened this issue Jun 25, 2018 · 3 comments
Labels
A-URL-Preview Issues related to generating server-side previews of remote URLs O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@ptman
Copy link
Contributor

ptman commented Jun 25, 2018

Description

URL previews of login pages or 401/403 aren't very useful. It would be nice if URL preview could have some logic to skip those. E.g. links to private google docs or sites needing login that aren't blacklisted.

Maybe even previews with transient error HTTP status codes (!= 200?) could have a way of requesting a refresh. With some sort of rate limit to prevent DoS.

@neilisfragile neilisfragile added z-p2 (Deprecated Label) z-feature (Deprecated Label) labels Jun 25, 2018
@richvdh richvdh changed the title Smarter URL preview Skip URL previews of non-200 pages Feb 13, 2019
@jaywink
Copy link
Member

jaywink commented Dec 2, 2021

Selection_999(762)

It sure would be nice to get rid of these totally useless previews when redirected to sign-in. Trouble is it's a standard 302 in this case for example, and there are totally valid cases for a 302 other than "taking you to login".

@Half-Shot
Copy link
Collaborator

Should synapse attempt to follow a 3XX (for a limited number of hops) and the resulting status checked? If we're not going to follow a 302, then I'd be pretty happy to say those shouldn't be rendered.

If there is useful content on a 3XX page, then that feels like a standard isn't being followed.

@clokep clokep added T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. and removed z-p2 (Deprecated Label) z-feature (Deprecated Label) labels Dec 2, 2021
@clokep
Copy link
Contributor

clokep commented May 30, 2023

We already do skip previews of non-2xx pages (I think we always have TBH); Synapse does follow 3xx redirects.

If you can't access something in GitLab it seems to redirect (via a 302) to the signin page, which returns a 200 response. I'll re-title this issue, but I don't think there's much we can do unless there's a standard way to "identify" a login page?

@clokep clokep added S-Tolerable Minor significance, cosmetic issues, low or no impact to users. O-Occasional Affects or can be seen by some users regularly or most users rarely A-URL-Preview Issues related to generating server-side previews of remote URLs labels May 30, 2023
@clokep clokep changed the title Skip URL previews of non-200 pages Skip URL previews of login pages May 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-URL-Preview Issues related to generating server-side previews of remote URLs O-Occasional Affects or can be seen by some users regularly or most users rarely S-Tolerable Minor significance, cosmetic issues, low or no impact to users. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

5 participants