[jboss-jira] [JBoss JIRA] (WFCORE-3296) Ephemeral port number (port="0") should not be affected by port offset

Paul Ferraro (Jira) issues at jboss.org
Thu Apr 4 15:26:04 EDT 2019


     [ https://issues.jboss.org/browse/WFCORE-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro updated WFCORE-3296:
---------------------------------
    Priority: Critical  (was: Blocker)


> Ephemeral port number (port="0") should not be affected by port offset
> ----------------------------------------------------------------------
>
>                 Key: WFCORE-3296
>                 URL: https://issues.jboss.org/browse/WFCORE-3296
>             Project: WildFly Core
>          Issue Type: Bug
>    Affects Versions: 3.0.2.Final
>            Reporter: Radoslav Husar
>            Assignee: Dmitrii Tikhomirov
>            Priority: Critical
>
> Port 0 is almost universally considered a wildcard port/indeterminate port/ephemeral/port chosen by the OS and obviously applying an offset to such port (e.g. offset of -100) will fail on multiple fronts, e.g.:
> {noformat}
> Caused by: java.lang.IllegalArgumentException: port out of range:-100
> {noformat}
> This is a regression introduced in https://issues.jboss.org/browse/WFLY-2345 based on discussion on https://developer.jboss.org/message/842406#842407 in PR https://github.com/wildfly/wildfly/pull/5307/files#diff-1a9ef995f085779b0598a1322551e580L114
> The original condition was also not really correct, since we allow negative and positive port offsets, the correct condition really is {code}if (!isFixedPort && port != 0) {{code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list