Fixed
Details
Assignee
Guus der KinderenGuus der KinderenReporter
Guus der KinderenGuus der KinderenFix versions
Priority
Major
Details
Details
Assignee
Guus der Kinderen
Guus der KinderenReporter
Guus der Kinderen
Guus der KinderenFix versions
Priority
Created March 6, 2017 at 7:06 PM
Updated April 10, 2017 at 1:20 PM
Resolved April 10, 2017 at 1:20 PM
When obtaining the hostname, the implementation of
org.jivesoftware.openfire.spi.XMPPServerInfoImpl#getHostname
will return a default value if another value was not explicitly defined. It is to be expected that often, an explicit value is defined (as this is done during setup). Most often, the calculated default value is unused.At times, the default value cannot be calculated. This causes an exception to be thrown, even when the default value is not used at all.
The code should not calculate the default value, unless it is needed. Also, this calculation should have a safe fallback.