From 73ca35d85189b7b74417ad4166f00fccdaf12436 Mon Sep 17 00:00:00 2001 From: "david.mcweeney" Date: Tue, 10 Aug 2021 14:23:28 +0100 Subject: DMAAP-DR - Whitelist removal Signed-off-by: david.mcweeney Change-Id: I6a12c9ae5f5aaff6045b9b6ee7d5c33274e94dc3 Issue-ID: DMAAP-1624 --- .../src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'datarouter-node/src/main/java') diff --git a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java index 27fa5f3e..aa827de1 100644 --- a/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java +++ b/datarouter-node/src/main/java/org/onap/dmaap/datarouter/node/NodeServlet.java @@ -253,14 +253,8 @@ public class NodeServlet extends HttpServlet { return; } fileid = fileid.substring(18); - if (req.getHeader("X-DMAAP-DR-PUBLISH-ID") != null && !req.getHeader("X-DMAAP-DR-PUBLISH-ID").matches("^[a-zA-Z0-9_]+$")) { - String reason = "Error validating header"; - eelfLogger.error(reason); - resp.sendError(HttpServletResponse.SC_BAD_REQUEST, reason); - eelfLogger.info(EelfMsgs.EXIT); - return; - } pubid = req.getHeader("X-DMAAP-DR-PUBLISH-ID"); + user = "datartr"; // SP6 : Added usr as datartr to avoid null entries for internal routing targets = config.parseRouting(req.getHeader("X-DMAAP-DR-ROUTING")); } else { -- cgit 1.2.3-korg