Mark,

i tested with the trunk from 8.5.6:

$ svn info
> Path: .
> Working Copy Root Path: /Users/tiago.oliveira/tmp/tomcat85x
> URL: http://svn.apache.org/repos/asf/tomcat/tc8.5.x/trunk
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 1761569
> Node Kind: directory
> Schedule: normal
> Last Changed Author: markt
> Last Changed Rev: 1761560
> Last Changed Date: 2016-09-20 08:44:42 -0300 (Ter, 20 Set 2016)


$ java -version
> java version "1.8.0_77"
> Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)


I issued *ant clean* & *ant package-tgz* then used the generated
*apache-tomcat-8.5.6-dev.tar.gz*.
After installing it in my staging box, configuring RewriteValve and placing
rewrite.config, i still have the same issue:

$ curl -I http://ci.behoh.com
> HTTP/1.1 302
> Location: http%3A//www.ci.behoh.com/
> Transfer-Encoding: chunked
> Date: Tue, 20 Sep 2016 13:21:54 GMT


Am i doing something wrong ? Could you point me to the revision where this
got mangled/fixed ? Maybe i can help.

Thanks again.

2016-09-19 17:55 GMT-03:00 Tiago Oliveira <tiago.olive...@behoh.com>:

> Mark,
>
> will checkout from trunk and test it. I think i can handle the build, no
> problem.
>
> Is 8.5.6 release date already set ?
>
> Thanks a lot.
>
> 2016-09-19 17:41 GMT-03:00 Mark Thomas <ma...@apache.org>:
>
>> On 19/09/2016 21:21, Mark Thomas wrote:
>> > On 19/09/2016 20:06, Tiago Oliveira wrote:
>> >> Hello,
>> >>
>> >>
>> >> I'm currently migrating from tomcat 8.0.33 to 8.5.5, as stated in the
>> >> subject, but have stumbled in an unexpected behavior when using the
>> >> RewriteValve. I tested in two diferent OS (ubuntu 16.04 LTS and Centos
>> 6.7).
>> >
>> > Sorry about that. It is a side effect of my botched attempt to fix
>> > handling of UTF-8 encoded values in the re-write valve.
>> >
>> > It should be fixed already for the 8.5.6 release but I'll add a test
>> > case to make sure.
>>
>> Confirmed.
>>
>> Building Tomcat from source is straightforward if you want to test this
>> with your application. If you want to do that and need any pointers,
>> just ask.
>>
>> Mark
>>
>> >
>> > Mark
>> >
>> >
>> >>
>> >> This is the content of my WEB-INF/rewrite.config (Valve configured
>> inside
>> >> Context):
>> >>
>> >>> RewriteCond %{HTTP_HOST} ^ci.behoh.com
>> >>> RewriteRule ^(.*)$ http://www.%{HTTP_HOST}$1 [R=302,L]
>> >>
>> >>
>> >>
>> >> In 8.0.33, my response headers are:
>> >>
>> >>> HTTP/1.1 302
>> >>> Location: http://www.ci.behoh.com/
>> >>> Content-Length: 0
>> >>> Date: Mon, 19 Sep 2016 18:39:43 GMT
>> >>
>> >>
>> >>
>> >> In 8.5.5, my response headers are:
>> >>
>> >>> HTTP/1.1 302
>> >>> Location: http%3A//www.ci.behoh.com/
>> >>> Content-Length: 0
>> >>> Date: Mon, 19 Sep 2016 18:40:24 GMT
>> >>
>> >>
>> >> Notice the encoded version of ":" (%3A) in 8.5.5.
>> >>
>> >> Because of that, the browser (Chrome/Firefox/Safari) is not redirecting
>> >> correctly, but instead appending the encoded string to the end of the
>> url,
>> >> incrementally, until i get a "java.lang.IllegalArgumentException:
>> Request
>> >> header is too large" (final modified  requestURL:
>> >> https://gist.github.com/tiagojco/b9c3f1a6e8c3fbacf206505b18944c62)
>> >>
>> >> I already tried the flag [NE] in the RewriteRule, to no avail.
>> >>
>> >> How can i fix this ? Is there any workaround ?
>> >>
>> >> Thanks a lot.
>> >>
>> >> p.s.: Sorry for my bad english, not my first language.
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> [image: Tiago Oliveira] Tiago OliveiraAnálise de sistemas[image: Contato]+55
> 83 99331.5541 <+5583993315541>/ 83 3506.8310 <+558335068310>[image: Email]
> tiago.olive...@behoh.com <tiago.olive...@behoh.com>
> [image: BeHOH]
> [image: Facebook] <https://www.facebook.com/behoh.co>[image: Twitter]
> <https://twitter.com/@BeHOHmyfriend>[image: Instagram]
> <https://www.instagram.com/behoh.co/>
>   [image: Website]behoh.com <http://www.behoh.com/>[image: Localização]
> goo.gl/FtUZdn <http://goo.gl/FtUZdn>
>



-- 
[image: Tiago Oliveira] Tiago OliveiraAnálise de sistemas[image: Contato]+55
83 99331.5541 <+5583993315541>/ 83 3506.8310 <+558335068310>[image: Email]
tiago.olive...@behoh.com <tiago.olive...@behoh.com>
[image: BeHOH]
[image: Facebook] <https://www.facebook.com/behoh.co>[image: Twitter]
<https://twitter.com/@BeHOHmyfriend>[image: Instagram]
<https://www.instagram.com/behoh.co/>
  [image: Website]behoh.com <http://www.behoh.com/>[image: Localização]
goo.gl/FtUZdn <http://goo.gl/FtUZdn>

Reply via email to