Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X EE, Master
-
7.0.x
-
Committed
-
1
Description
As stated in the JavaDoc of HttpServletRequest.getIntHeader:
Returns the value of the specified request header as an int. If the request does not have a header of the specified name, this method returns -1. If the header cannot be converted to an integer, this method throws a NumberFormatException.
In Liferay's PortletServletRequest, this method uses GetterUtil.getInteger with default value "0", and it doesn't throw NumberFormatException.
This is also the case with PortletServletRequest.getDateHeader