Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/src/org/labkey/api/security/Encryption.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,9 @@ public static void deleteEncryptedContent(User user)
event.setChanges(changes);
AuditLogService.get().addEvent(user, event);
CacheManager.clearAllKnownCaches();
// Reset the counter and clear the warnings
DECRYPTION_EXCEPTIONS.set(0);
WarningService.get().clearStaticWarnings();
LOG.info("Finished deleting all encrypted content");
}

Expand Down
1 change: 1 addition & 0 deletions api/src/org/labkey/api/view/template/WarningService.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ static void setInstance(WarningService impl)
Warnings getWarnings(@Nullable ViewContext context);
HtmlString getWarningsHtml(Warnings warnings, ViewContext context);
void rerunSchemaCheck(); // Doesn't really fit on this service, but there's no better existing service
void clearStaticWarnings();
}
2 changes: 1 addition & 1 deletion core/src/org/labkey/core/admin/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3688,7 +3688,7 @@ public AttachmentsForTypeAction()
public void addNavTrail(NavTree root)
{
String parentType = getViewContext().getActionURL().getParameter("core.ParentType~eq");
addAdminNavTrail(root, "Documents Belonging to Parent Type" + (parentType != null ? " \"" + parentType + "\"" : ""), getClass());
addAdminNavTrail(root, parentType != null ? "Documents Belonging to Parent Type \"" + parentType + "\"" : "Documents", getClass());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static class LazyInitializer
SHOW_ALL_WARNINGS = OptionalFeatureService.get().isFeatureEnabled(EXPERIMENTAL_SHOW_ALL_WARNINGS);
OptionalFeatureService.get().addFeatureListener(EXPERIMENTAL_SHOW_ALL_WARNINGS, (feature, enabled) -> {
SHOW_ALL_WARNINGS = enabled;
clearStaticWarnings(); // Force static warnings to be re-collected since flag has changed
WarningService.get().clearStaticWarnings(); // Force static warnings to be re-collected since flag has changed
});
}
}
Expand All @@ -86,7 +86,8 @@ public void register(WarningProvider provider)
clearStaticWarnings();
}

private static void clearStaticWarnings()
@Override
public void clearStaticWarnings()
{
synchronized (STATIC_WARNING_LOCK)
{
Expand Down Expand Up @@ -194,7 +195,7 @@ private void appendMessageContent(Warnings warnings, HtmlStringBuilder html)
List<HtmlString> messages = warnings.getMessages();

if (messages.size() == 1)
html.append(messages.get(0));
html.append(messages.getFirst());
else
{
html.startTag("ul");
Expand Down
Loading