XForwardedSupport does not work in 1.1

Bug #577160 reported by Alex Solovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
play framework
Fix Committed
Medium
Nicolas Leroux

Bug Description

XForwardedSupport configuration does not work in 1.1-r891. The following code in PlayHelper fails:

Arrays.asList(Play.configuration.getProperty("XForwardedSupport", "127.0.0.1").split(",")).contains(request.remoteAddress)

The problem is that request.remoteAddress looks like "/127.0.0.1:47132" in 1.1, while in 1.0.2 it was just "127.0.0.1".

Changed in play:
assignee: nobody → Nicolas Leroux (nicolas-lunatech)
milestone: none → 1.1
importance: Undecided → Medium
Changed in play:
status: New → In Progress
Changed in play:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.