Project

General

Profile

Bug #8765

JWt 4.5.0 trustedProxies is null when initializing Configuration from a XML

Added by Daniel Jeronymo 3 months ago. Updated 2 months ago.

Status:
Implemented @Emweb
Priority:
Immediate
Category:
-
Target version:
-
Start date:
07/04/2021
Due date:
% Done:

0%

Estimated time:

Description

When initializing Configuration with a XML file this will call the XML constructor and the "trustedProxies" variable isn't initialized, eventually this will throw an exception at Configuration:966 "for (Network trustedProxy : trustedProxies)". This is a version breaking bug for whoever uses configuration files.

Fix is simple, change Configuration:185 to initialize the variable: "private List trustedProxies = Collections.emptyList();".

This variable initialization can then be removed from Configuration default constructor.

#1

Updated by Roel Standaert 3 months ago

  • Status changed from New to InProgress
  • Assignee set to Roel Standaert
#2

Updated by Roel Standaert 3 months ago

  • Status changed from InProgress to Review
#3

Updated by Roel Standaert 2 months ago

  • Status changed from Review to Implemented @Emweb

Also available in: Atom PDF