From 46c63c89dbe4a8394f03b340613bcbb2cad42d07 Mon Sep 17 00:00:00 2001 From: empassaro Date: Tue, 16 Apr 2024 18:35:22 +0200 Subject: [PATCH] SELC-4470 fix: re-added the log by performing input sanitization --- .../mscore/connector/rest/PartyRegistryProxyConnectorImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/connector/rest/src/main/java/it/pagopa/selfcare/mscore/connector/rest/PartyRegistryProxyConnectorImpl.java b/connector/rest/src/main/java/it/pagopa/selfcare/mscore/connector/rest/PartyRegistryProxyConnectorImpl.java index d9f5d0606..d51b08b10 100644 --- a/connector/rest/src/main/java/it/pagopa/selfcare/mscore/connector/rest/PartyRegistryProxyConnectorImpl.java +++ b/connector/rest/src/main/java/it/pagopa/selfcare/mscore/connector/rest/PartyRegistryProxyConnectorImpl.java @@ -182,6 +182,7 @@ public SaResource getSAFromAnac(String taxId) { @Override public AsResource getASFromIvass(String ivassCode) { try { + if (ivassCode.matches("\\w*")) { log.debug("getASFromIvass = {}", ivassCode); } Assert.hasText(ivassCode, "IvassCode is required"); ResponseEntity result = restClient._searchByOriginIdUsingGET(ivassCode); log.debug("getASFromIvass = {}", ivassCode);