From 88b01afc60b0c687511203eaa508553be645b2e1 Mon Sep 17 00:00:00 2001 From: Dejan Date: Tue, 1 Nov 2022 17:19:21 +0100 Subject: [PATCH] Xenon 1.4.3 Bumped version to 3.4.5 --- pom.xml | 4 ++-- .../wire/lithium/server/monitoring/StatusCheckFilter.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 837e1dc..07e394d 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.wire lithium - 3.4.4 + 3.4.5 Lithium Wire Bots SDK written in Java https://wire.com/ @@ -58,7 +58,7 @@ UTF-8 2.1.4 - 1.4.2 + 1.4.3 5.9.0 true diff --git a/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java b/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java index 60813f5..f9be29c 100644 --- a/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java +++ b/src/main/java/com/wire/lithium/server/monitoring/StatusCheckFilter.java @@ -11,7 +11,7 @@ public class StatusCheckFilter implements FilterFactory { @Override public Filter build() { - return new Filter() { + return new Filter<>() { @Override public FilterReply decide(IAccessEvent event) { if (event.getRequestURI().contains("/status")) { @@ -20,6 +20,9 @@ public FilterReply decide(IAccessEvent event) { if (event.getRequestURI().contains("/swagger")) { return FilterReply.DENY; } + if (event.getRequestURI().contains("/metrics")) { + return FilterReply.DENY; + } return FilterReply.NEUTRAL; } };