On 12/23/2015 6:59 PM, Konstantin Kolinko wrote:
2015-12-24 4:09 GMT+03:00 George Sexton <geor...@mhsoftware.com>:
I'm seeing an unusual behavior change going from 7.0.65 -> 7.0.67. I've
confirmed this also working under 7.0.55 and not working under 7.0.67 on a
different machine.

The sequence is:

GET /A.html
POST /A.html <- Returns /A.html
POST /A.html <- Redirects to B.html (tried /B.html and it doesn't work
either)

on 7.0.65, things work as as expected.

on 7.0.67, the final post returns a 404, not found error.

I'm using CATALINA_BASE/CATALINA_HOME and the configuration is not changed.

Is this change in behavior expected? If the behavior is expected, could
someone elaborate on what I'm doing wrong, and what I should be doing?
How are you sending the redirect? What API are you using?

HttpServletResponse.sendRedirect()


There is a new feature, controlled by useRelativeRedirects attribute on Context.
You can see it mentioned in release announcement at http://tomcat.apache.org/

My assumption was the default was to preserve the old behavior. That's what I got reading the changelog. Perhaps I mis-interpreted that.

on 7.0.67, the final post returns a 404, not found error.
Is the 404 error coming from Tomcat?
In your access log, is there a difference of page URL that users are requesting?

[23/Dec/2015:17:37:37 -0700] "POST /ViewPlanner.html HTTP/1.1" 404 - 
"https://somehost.mhsoftware.com/ViewPlanner.html?integral=1"; "Mozilla/5.0 (X11; Linux x86_64; 
rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:42:22 -0700] "GET /ViewPlanner.html?integral=1 HTTP/1.1" 200 5019 
"http://somehost.mhsoftware.com/Welcome.html?from_login=1"; "Mozilla/5.0 (X11; Linux x86_64; 
rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:42:24 -0700] "POST /ViewPlanner.html HTTP/1.1" 404 - 
"http://somehost.mhsoftware.com/ViewPlanner.html?integral=1"; "Mozilla/5.0 (X11; Linux x86_64; 
rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:43:35 -0700] "GET /ViewPlanner.html HTTP/1.1" 200 4943 "-" 
"Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:43:41 -0700] "POST /ViewPlanner.html HTTP/1.1" 200 5085 
"http://somehost.mhsoftware.com/ViewPlanner.html"; "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) 
Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:43:44 -0700] "POST /ViewPlanner.html HTTP/1.1" 404 - 
"http://somehost.mhsoftware.com/ViewPlanner.html"; "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) 
Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:45:01 -0700] "GET /ViewPlanner.html HTTP/1.1" 200 5007 "-" 
"Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:45:06 -0700] "POST /ViewPlanner.html HTTP/1.1" 200 5840 
"http://somehost.mhsoftware.com/ViewPlanner.html"; "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) 
Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:45:08 -0700] "POST /ViewPlanner.html HTTP/1.1" 404 - 
"http://somehost.mhsoftware.com/ViewPlanner.html"; "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) 
Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:58:01 -0700] "GET /ViewPlanner.html?integral=1 HTTP/1.1" 200 5829 
"http://somehost.mhsoftware.com/"; "Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 
Firefox/42.0" somehost.mhsoftware.com
[23/Dec/2015:17:58:05 -0700] "POST /ViewPlanner.html HTTP/1.1" 302 - 
"http://somehost.mhsoftware.com/ViewPlanner.html?integral=1"; "Mozilla/5.0 (X11; Linux x86_64; 
rv:42.0) Gecko/20100101 Firefox/42.0" somehost.mhsoftware.com




You can modify AccessLogValve configuration to dump Location header of
responses, and compare them.

I've got a TCPDUMP capture I can share if someone would like to see it.

Sent off-list.

I would like to see it.

Best regards,
Konstantin Kolinko

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


--
George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.mhsoftware.com

Reply via email to