Sonar critical issues 67/42167/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 11 Apr 2018 05:39:50 +0000 (11:09 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 11 Apr 2018 05:39:50 +0000 (11:09 +0530)
 Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VanH32hFUzlqc51u&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/filter/ContentLengthFilter.java
Line No-107

Change-Id: I0ba58d2ef57ff1e74f9adff505b68b6b7971f335
Issue-ID: DMAAP-402
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/filter/ContentLengthFilter.java

index d70da66..5582f1f 100644 (file)
@@ -105,7 +105,7 @@ public class ContentLengthFilter implements Filter {
                                chain.doFilter(req, res);
                        }
                } catch (CambriaApiException | NumberFormatException e) {
-                       log.error("message size is greater then default");
+                       log.error("message size is greater then default:" + e);
                        ErrorResponse errRes = new ErrorResponse(HttpStatus.SC_EXPECTATION_FAILED,
                                        DMaaPResponseCode.MSG_SIZE_EXCEEDS_MSG_LIMIT.getResponseCode(), errorMessages.getMsgSizeExceeds()
                                                        + jsonObj.toString());