You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brett Delle Grazie <br...@gmail.com> on 2011/01/11 10:45:06 UTC

Re: RemoteIP valve and multiple X-Forwarded-For headers

Hi,

On 10 December 2010 14:42, Jim Riggs <ap...@riggs.me> wrote:
> On Dec 10, 2010, at 7:59 AM, Mark Thomas wrote:
>
>>> Looks like a bug,
>>>
>>> Please add it to bugzilla, as Mark suggested.
>>>
>>> BTW, I think that the following change can fix it:
>>> (for current tc6.0.x, not tested!)
>>
>> I don't think so. I think the problem is further up on line 558:
>> String[] remoteIpHeaderValue =
>> commaDelimitedListToStringArray(request.getHeader(remoteIpHeader));
>>
>> I'm pretty sure that needs to be using request.getHeaders() but I
>> haven't tested it either ;)
>
> It does indeed need to be using the Enumeration from request.getHeaders() instead of the single value from getHeader().  I have started work on a patch, unless someone beats me to it...
>
>
I've manually compiled 6.0.29 with the patch and applied it to our
test and then production systems (we couldn't wait for 6.0.30).
This works perfectly.

Thank you very much to all who helped.

-- 
Best Regards,

Brett Delle Grazie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org