adoroszlai commented on code in PR #7767:
URL: https://github.com/apache/ozone/pull/7767#discussion_r1931833589
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/HddsConfServlet.java:
##########
@@ -164,6 +164,7 @@ private void processConfigTagRequest(HttpServletRequest
request, String cmd,
propMap.put(tag, properties);
} else {
if (LOG.isDebugEnabled()) {
+ tag = tag.replaceAll("[\n\r]", "_");
LOG.debug("Not a valid tag {}", tag);
}
Review Comment:
I think we should just remove this `else` branch.
```suggestion
```
(`Logger LOG` can also be removed, and imports which become unused)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]