Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Incomplete
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.9.0
-
Component/s: core.api
-
Labels:None
-
Environment:
The get_host() method fails when the host is behind multiple proxies. In some cases,
Browser --> Knox --> Apache Load Balancer --> Hue
Hue Django code receives self.META['HTTP_X_FORWARDED_HOST'] values such as
host1:port1, host2:port2.
This patch accepts self.META['HTTP_X_FORWARDED_HOST'] header and process last tuple as self.META['HTTP_X_FORWARDED_HOST'] value.
The get_host() method fails when the host is behind multiple proxies. In some cases, Browser --> Knox --> Apache Load Balancer --> Hue Hue Django code receives self.META ['HTTP_X_FORWARDED_HOST'] values such as host1:port1, host2:port2. This patch accepts self.META ['HTTP_X_FORWARDED_HOST'] header and process last tuple as self.META ['HTTP_X_FORWARDED_HOST'] value.
-
Target Version: