pgyori commented on a change in pull request #4603:
URL: https://github.com/apache/nifi/pull/4603#discussion_r507811792
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/servlets/ContentAcknowledgmentServlet.java
##########
@@ -57,10 +58,17 @@ public void init(final ServletConfig config) throws
ServletException {
this.logger = (ComponentLog)
context.getAttribute(ListenHTTP.CONTEXT_ATTRIBUTE_LOGGER);
this.authorizedPattern = (Pattern)
context.getAttribute(ListenHTTP.CONTEXT_ATTRIBUTE_AUTHORITY_PATTERN);
this.flowFileMap = (ConcurrentMap<String, FlowFileEntryTimeWrapper>)
context.getAttribute(ListenHTTP.CONTEXT_ATTRIBUTE_FLOWFILE_MAP);
+ this.port = (int)
context.getAttribute(ListenHTTP.CONTEXT_ATTRIBUTE_PORT);
}
@Override
protected void doDelete(final HttpServletRequest request, final
HttpServletResponse response) throws ServletException, IOException {
+
+ if (request.getLocalPort() != port) {
+ super.doPost(request, response);
Review comment:
That's right I did want to use doDelete(), thank you! I'll fix it in the
upcoming commit.
I wanted to do as little modification to the existing code as possible,
that's why I did not wrap the entire method body.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]