From 394ca4101d79a7008dfdfaec4c7de2966e6d89e4 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Wed, 15 Mar 2023 11:40:37 +0100 Subject: [PATCH] fixes #357: No longer show NPE on admin console after user session expired The NPE shown was an artifact of the page being processed without authentication in place. This should be prevented by the AuthCheckFilter. Sadly, a naming collision prevents the AuthCheckFilter to operate on the Monitoring Service admin console pages. This commit prevents the naming collision, by renaming the endpoint on which the public API for logs is exposed (from 'monitoring' to 'logs'). --- changelog.html | 1 + src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.html b/changelog.html index 1206d5e83..b3ee65c2a 100644 --- a/changelog.html +++ b/changelog.html @@ -51,6 +51,7 @@

  • [Issue #398] - Fixes: Missing translation for system property
  • [Issue #392] - Fixes: Compatibility issue with Openfire 5.0.0
  • [Issue #363] - Fixes SQL Server error: An expression of non-boolean type specified in a context where a condition is expected, near 'RowNum'
  • +
  • [Issue #357] - Fixes: Error on admin console after user session expired.
  • [Issue #354] - Allow full-text search / indexing to be disabled
  • diff --git a/src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java b/src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java index 1e37fb166..720bc5b72 100644 --- a/src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java +++ b/src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java @@ -64,7 +64,7 @@ public class MonitoringPlugin implements Plugin, PluginListener /** * The context root of the URL under which the public web endpoints are exposed. */ - public static final String CONTEXT_ROOT = "monitoring"; + public static final String CONTEXT_ROOT = "logs"; private static final SystemProperty MOCK_VIEWER_ENABLED = SystemProperty.Builder.ofType( Boolean.class ) .setKey("stats.mock.viewer" )