From c4292cdcfa206f2571559ff1aecfc1397c1f272a Mon Sep 17 00:00:00 2001 From: raikbitters Date: Mon, 9 Oct 2023 20:17:15 +0400 Subject: [PATCH] Add a check to avoid duplicate names in path --- .../epam/reportportal/auth/config/Swagger2Configuration.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java b/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java index 4e538686..4a312e54 100644 --- a/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java +++ b/src/main/java/com/epam/reportportal/auth/config/Swagger2Configuration.java @@ -89,6 +89,9 @@ public PathProvider rpPathProvider() { return new RelativePathProvider(servletContext) { @Override public String getApplicationBasePath() { + if (super.getApplicationBasePath().contains(applicationName)) { + return super.getApplicationBasePath(); + } return "/" + applicationName + super.getApplicationBasePath(); } };