Skip to content

Commit 5dd7c75

Browse files
AXIS2-6086 AxisServlet - processAxisFault - does not guard against NumberFormatException
1 parent e236604 commit 5dd7c75

File tree

1 file changed

+3
-1
lines changed
  • modules/transport/http/src/main/java/org/apache/axis2/transport/http

1 file changed

+3
-1
lines changed

modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ void processAxisFault(MessageContext msgContext, HttpServletResponse res,
417417
String status =
418418
(String) msgContext.getProperty(Constants.HTTP_RESPONSE_STATE);
419419
if (status == null) {
420-
log.info("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR", e);
420+
// don't change the logging status from debug,
421+
// see AXIS2-6065 and AXIS2-6086
422+
log.debug("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR", e);
421423
res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
422424
} else {
423425
log.debug("processAxisFault() found an HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status);

0 commit comments

Comments
 (0)