mirror of
https://github.com/penpot/penpot.git
synced 2026-05-10 18:48:23 +00:00
* 🐛 Only fall back to anonymous on :not-found in get-profile ::get-profile caught Throwable and silently returned the anonymous user payload for every error - contradicting the in-code comment that states in all other cases we need to reraise the exception. Under transient DB conditions (pool checkout timeout, replica lag, statement timeout, network blip) this masked real DB outages as ordinary anonymous responses, returning HTTP 200 instead of 5xx and leaving logged-in users on the login screen with a valid session cookie. Narrow the catch so only :type :not-found falls through; everything else propagates and reaches the standard error pipeline. Closes #9235 Signed-off-by: jack-stormentswe <crazycoder131@gmail.com> * 🐛 Only fall back to anonymous on :not-found in get-profile ::get-profile caught Throwable and silently returned the anonymous user payload for every error - contradicting the in-code comment that states in all other cases we need to reraise the exception. Under transient DB conditions (pool checkout timeout, replica lag, statement timeout, network blip) this masked real DB outages as ordinary anonymous responses, returning HTTP 200 instead of 5xx and leaving logged-in users on the login screen with a valid session cookie. Narrow the catch so only :type :not-found falls through; everything else propagates and reaches the standard error pipeline. Closes #9253 Signed-off-by: jack-stormentswe <crazycoder131@gmail.com> --------- Signed-off-by: jack-stormentswe <crazycoder131@gmail.com> Signed-off-by: Jack Storment <88656337+jack-stormentswe@users.noreply.github.com>