Lukasz Lenart created WW-5807:
---------------------------------
Summary: Struts Boot: validate the struts.boot.port range
Key: WW-5807
URL: https://issues.apache.org/jira/browse/WW-5807
Project: Struts 2
Issue Type: Improvement
Components: Core
Reporter: Lukasz Lenart
Fix For: 7.6.0
Follow-up to [WW-5791|https://issues.apache.org/jira/browse/WW-5791] (review of
PR [#2053|https://github.com/apache/struts/pull/2053]).
{{BootSettings#parsePort}} only checks that {{struts.boot.port}} is a number. A
negative value or one above 65535 is rejected later by Tomcat at bind time,
wrapped in a generic "Struts Boot failed to start" error.
Expected: accept 0–65535 (0 picks a free port) and throw a
{{ConfigurationException}} naming {{struts.boot.port}} and the value otherwise.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)