From b7989e5b27bdfa250efca239d167d738ead9548b Mon Sep 17 00:00:00 2001 From: sd-hystax <110374605+sd-hystax@users.noreply.github.com> Date: Wed, 25 Mar 2026 12:53:35 +0400 Subject: [PATCH] OSN-1385. Fixed not found error on bulk_action_resources ## Description Fixed not found error on bulk_action_resources ## Related issue number OSN-1385 ## Special notes ## Checklist * [ ] The pull request title is a good summary of the changes * [ ] Unit tests for the changes exist * [ ] New and existing unit tests pass locally --- auth/auth_server/controllers/base.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/auth/auth_server/controllers/base.py b/auth/auth_server/controllers/base.py index 4cdfa19de..ee58adf2f 100644 --- a/auth/auth_server/controllers/base.py +++ b/auth/auth_server/controllers/base.py @@ -221,7 +221,13 @@ def format_user_action_resources(self, action_resources, action_list): if id_ in [x[0] for x in aset]: # downward hierarchy was derived from a higher entity continue - response = self.get_downward_hierarchy(res_type, id_) + try: + response = self.get_downward_hierarchy(res_type, id_) + except requests.exceptions.HTTPError as exc: + if exc.response.status_code == 404: + # resource is deleted + continue + raise self.render(action_resources, aset, response) result = dict(map(lambda k: (k, list()), action_list)) for i in aset: