This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 7acdd446e97 NIFI-15560 Allow RemoteProcessGroup to receive no files
via HTTP without stack trace in logs
7acdd446e97 is described below
commit 7acdd446e9722760a1c11a4f7944077dc52835fc
Author: Nissim Shiman <[email protected]>
AuthorDate: Fri Mar 6 17:59:27 2026 +0000
NIFI-15560 Allow RemoteProcessGroup to receive no files via HTTP without
stack trace in logs
This closes #10979.
Signed-off-by: Pierre Villard <[email protected]>
---
.../apache/nifi/web/api/config/WebApplicationExceptionMapper.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/config/WebApplicationExceptionMapper.java
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/config/WebApplicationExceptionMapper.java
index f93249598c1..27d073bb0c1 100644
---
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/config/WebApplicationExceptionMapper.java
+++
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/config/WebApplicationExceptionMapper.java
@@ -49,8 +49,12 @@ public class WebApplicationExceptionMapper implements
ExceptionMapper<WebApplica
// get the response
final Response response = exception.getResponse();
- // log the error
- logger.warn("{}. Returning {} response.", exception,
response.getStatus(), exception);
+ if (response.getStatus() != Response.Status.OK.getStatusCode()) {
+ // log the error
+ logger.warn("{}. Returning {} response.", exception,
response.getStatus(), exception);
+ } else {
+ logger.debug("{}. Returning {} response.", exception,
response.getStatus(), exception);
+ }
// generate the response
return
Response.status(response.getStatus()).entity(message).type("text/plain").build();