Use explicit "true" String 58/101758/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Jul 2022 15:24:48 +0000 (17:24 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Jul 2022 15:25:21 +0000 (17:25 +0200)
The spec says the property needs to be a String, make sure we comply.

JIRA: AAA-225
Change-Id: Ic0793676e79e50d79b55b73f2ad6d18055afb52d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
web/impl-osgi/src/main/java/org/opendaylight/aaa/web/osgi/WhiteboardWebServer.java

index 141a6825daf5e6507a02b61d391c58d876412b8e..25ac9a72abadfcd5f76275ef9c43f30ec235333c 100644 (file)
@@ -120,7 +120,7 @@ public final class WhiteboardWebServer implements WebServer {
         for (var listener : webContext.listeners()) {
             final var props = Map.of(
                 HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT, contextSelect,
-                HttpWhiteboardConstants.HTTP_WHITEBOARD_LISTENER, Boolean.TRUE);
+                HttpWhiteboardConstants.HTTP_WHITEBOARD_LISTENER, "true");
             LOG.debug("Registering listener {} with properties {}", listener, props);
             builder.add(bundleContext.registerService(ServletContextListener.class, listener,
                 FrameworkUtil.asDictionary(props)));