diff --git a/CHANGES.md b/CHANGES.md index 039e0f8f5e..6d8f19c80e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -75,6 +75,7 @@ ### :bug: Bugs fixed +- Fix `get-profile` masking transient DB errors as anonymous user [Github #9253](https://github.com/penpot/penpot/issues/9253) - Fix `Ctrl+'` "Show guides" shortcut on non-US keyboard layouts by matching the physical key location so it no longer collides with the snap-guides shortcut (by @RenzoMXD) [Github #8423](https://github.com/penpot/penpot/issues/8423) - Fix lost-update race on `team.features` during concurrent file creation: two simultaneous create-file requests on the same team could both read the same features snapshot, compute different unions, and have the second `UPDATE` silently overwrite the first; the write is now preceded by a `SELECT … FOR UPDATE` inside the same transaction so every update sees the latest committed state [Github #9197](https://github.com/penpot/penpot/issues/9197) - Fix Alt/Option to draw shapes from center point (by @offreal) [Github #8361](https://github.com/penpot/penpot/pull/8361) diff --git a/backend/src/app/rpc/commands/profile.clj b/backend/src/app/rpc/commands/profile.clj index ed09d90586..2fe4ec68f9 100644 --- a/backend/src/app/rpc/commands/profile.clj +++ b/backend/src/app/rpc/commands/profile.clj @@ -110,8 +110,10 @@ (nitrate/add-nitrate-licence-to-profile cfg profile) profile)) - (catch Throwable _ - {:id uuid/zero :fullname "Anonymous User"}))) + (catch Throwable cause + (if (= :not-found (-> cause ex-data :type)) + {:id uuid/zero :fullname "Anonymous User"} + (throw cause))))) (defn get-profile "Get profile by id. Throws not-found exception if no profile found."