Skip to content

Commit

Permalink
Ignore restricted issues during indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-klum committed Nov 7, 2024
1 parent c71d298 commit ac09c20
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions issues/src/org/labkey/issue/model/IssueManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit ac09c20

Please sign in to comment.