diff --git a/shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/AuthController.java b/shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/AuthController.java
index f7523afe0..6c56cd7a2 100644
--- a/shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/AuthController.java
+++ b/shogun-boot/src/main/java/de/terrestris/shogun/boot/controller/AuthController.java
@@ -32,7 +32,7 @@
public class AuthController {
@GetMapping("/isSessionValid")
- public ResponseEntity> isSessionValid(Authentication authentication) {
+ public ResponseEntity isSessionValid(Authentication authentication) {
log.debug("Checking if user is logged in.");
if (authentication != null && authentication.isAuthenticated()) {
diff --git a/shogun-boot/src/main/resources/templates/error/404.html b/shogun-boot/src/main/resources/templates/error/404.html
index 1f594b77b..949500627 100644
--- a/shogun-boot/src/main/resources/templates/error/404.html
+++ b/shogun-boot/src/main/resources/templates/error/404.html
@@ -56,7 +56,6 @@
border-radius: 8px;
-moz-border-radius: 8px;
margin: auto 70px auto 70px;
- #padding: 50px;
top: 50%;
position: absolute;
transform: translate(0, -50%);
@@ -86,6 +85,7 @@
margin-left: auto;
}
+ SHOGun - Error
@@ -94,14 +94,14 @@
Oops!
The page you're looking for is not available.
-
+
diff --git a/shogun-boot/src/main/resources/templates/index.html b/shogun-boot/src/main/resources/templates/index.html
index 1dcfb518d..d05de9ea0 100644
--- a/shogun-boot/src/main/resources/templates/index.html
+++ b/shogun-boot/src/main/resources/templates/index.html
@@ -42,7 +42,7 @@
-
+
Swagger / OpenAPI
-
+
GraphiQL
-
+
GitHub
@@ -191,7 +191,7 @@ Applications
appInfos.forEach(app => {
const html = `` +
`` +
- `` +
+ `` +
`${app.name}` +
`${app.description}` +
``;
diff --git a/shogun-gs-interceptor/src/main/java/de/terrestris/shogun/interceptor/controller/GeoServerInterceptorController.java b/shogun-gs-interceptor/src/main/java/de/terrestris/shogun/interceptor/controller/GeoServerInterceptorController.java
index 8b3e8a07c..f813323b1 100644
--- a/shogun-gs-interceptor/src/main/java/de/terrestris/shogun/interceptor/controller/GeoServerInterceptorController.java
+++ b/shogun-gs-interceptor/src/main/java/de/terrestris/shogun/interceptor/controller/GeoServerInterceptorController.java
@@ -45,7 +45,7 @@ public class GeoServerInterceptorController {
protected GeoServerInterceptorService service;
@RequestMapping(value = {"/geoserver.action", "/geoserver.action/{endpoint}"}, method = {RequestMethod.GET, RequestMethod.POST})
- public ResponseEntity> interceptGeoServerRequest(HttpServletRequest request, Optional endpoint) {
+ public ResponseEntity interceptGeoServerRequest(HttpServletRequest request, Optional endpoint) {
HttpHeaders responseHeaders = new HttpHeaders();
HttpStatus responseStatus;
byte[] responseBody;
diff --git a/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/HttpUtil.java b/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/HttpUtil.java
index f047d58e6..3d958ba49 100644
--- a/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/HttpUtil.java
+++ b/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/HttpUtil.java
@@ -20,6 +20,7 @@
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.Part;
+import lombok.Getter;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
@@ -65,6 +66,7 @@ public class HttpUtil {
/**
* The timeout for all outgoing HTTP connections.
*/
+ @Getter
private static int httpTimeout;
/**
* The default timeout given by the config beans.
@@ -76,14 +78,14 @@ public class HttpUtil {
private static String AUTHORIZATION_HEADER = "authorization";
/**
- * Returns the full webapplication URI from a given request.
+ * Returns the full web application URI from a given request.
*
* Example:
*
* The following GET-request:
- * http://localhost:8080/shogun/user/resetPassword.action
+ * ...
* will result in
- * http://localhost:8080/shogun/
+ * ...
*
* @param request
* @return
@@ -2185,13 +2187,6 @@ private static HttpHost getSystemProxy(URI uri) throws UnknownHostException {
return systemProxy;
}
- /**
- * @return the httpTimeout
- */
- public static int getHttpTimeout() {
- return httpTimeout;
- }
-
/**
* @param httpTimeout the httpTimeout to set
*/
diff --git a/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/KeycloakUtil.java b/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/KeycloakUtil.java
index 84485b00f..b49abb77d 100644
--- a/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/KeycloakUtil.java
+++ b/shogun-lib/src/main/java/de/terrestris/shogun/lib/util/KeycloakUtil.java
@@ -125,7 +125,7 @@ public GroupRepresentation addGroup(String groupName) throws WebApplicationExcep
if (!availableGroups.isEmpty()) {
log.debug("Group {} already exists.", groupName);
- return availableGroups.get(0);
+ return availableGroups.getFirst();
}
GroupRepresentation group = new GroupRepresentation();