You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jeff Thomas (Jira)" <ji...@apache.org> on 2025/03/21 00:07:00 UTC
[jira] [Created] (AXIS2-6086) AxisServlet - processAxisFault - does not guard against NumberFormatException
Jeff Thomas created AXIS2-6086:
----------------------------------
Summary: AxisServlet - processAxisFault - does not guard against NumberFormatException
Key: AXIS2-6086
URL: https://issues.apache.org/jira/browse/AXIS2-6086
Project: Axis2
Issue Type: Bug
Components: transports
Affects Versions: 2.0.0
Reporter: Jeff Thomas
In the {{AxisServle#processAxisFault}} there is an unguarded {{Integer.parseInt}} which could propagate a {{{}NumberFormatException{}}}.
{code:java}
if (status == null) {
log.error("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);
res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
} else {
log.error("processAxisFault() found an HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status);
res.setStatus(Integer.parseInt(status));
return;
} {code}
---
Also these logs with level "error" are spammy - maybe consider a warning since they are handled - one of our customers complained about thousands of lines off errors with stacktraces for this recurring conditiion - our custom fork has these set to warn.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org