From ac09c2000a5d711abae524bdf182d625c9868ebb Mon Sep 17 00:00:00 2001 From: Lum Date: Wed, 6 Nov 2024 16:19:12 -0800 Subject: [PATCH] Ignore restricted issues during indexing --- issues/src/org/labkey/issue/model/IssueManager.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/issues/src/org/labkey/issue/model/IssueManager.java b/issues/src/org/labkey/issue/model/IssueManager.java index 82bf78f24bb..4dc22715aeb 100644 --- a/issues/src/org/labkey/issue/model/IssueManager.java +++ b/issues/src/org/labkey/issue/model/IssueManager.java @@ -953,9 +953,16 @@ public static void indexIssues(@Nullable Container container, User user, IndexTa for (Integer id : ids) { - IssueObject issue = IssueManager.getIssue(container, user, id); - if (issue != null) - queueIssue(task, id, issue.getProperties(), issue.getCommentObjects()); + try + { + IssueObject issue = IssueManager.getIssue(container, user, id); + if (issue != null) + queueIssue(task, id, issue.getProperties(), issue.getCommentObjects()); + } + catch (UnauthorizedException e) + { + // Issue 51607 ignore restricted issue failures + } } }