On 26/02/18 20:19, Mark A. Claassen wrote:
> Thanks!  That was the configuration setting I needed, but didn't know to look 
> for.  Adding that attribute and setting it to "false" did the trick.
> 
> Upon looking, I see that the Tomcat I was testing against was Tomcat 7 and 
> not 8. (Sorry about that.)  I did some searching and don't see that attribute 
> being set to false anywhere or the 
> "org.apache.catalina.STRICT_SERVLET_COMPLIANCE" property being set.
> 
> I see the docs all say that useRelativeRedirects defaults to true, so I can't 
> explain why things worked in my old installation.

Best guess you were using an older version of Tomcat 7 where the feature
did not exist. It was added for 7.0.67 onwards.

> Regardless of this, I am very thankful to know about this attribute.  Thanks 
> again for your time.

No problem. Happy to help.

Thanks to you writing a good question, it was easy to answer quickly.

Mark

> 
> Mark Claassen
> Senior Software Engineer
> 
> Donnell Systems, Inc.
> 130 South Main Street
> Leighton Plaza Suite 375
> South Bend, IN  46601
> E-mail: mailto:mclaas...@ocie.net
> Voice: (574)232-3784
> Fax: (574)232-4014
>   
> -------------------------------------------
> Confidentiality Notice: OCIESERVICE
> -------------------------------------------
> The contents of this e-mail message and any attachments are intended solely 
> for the addressee(s) named in this message. This communication is intended to 
> be and to remain confidential. If you are not the intended recipient of this 
> message, or if this message has been addressed to you in error, please 
> immediately alert the sender by reply e-mail and then delete this message and 
> its attachments. Do not deliver, distribute, copy, disclose the contents or 
> take any action in reliance upon the information contained in the 
> communication or any attachments.
> 
> 
> -----Original Message-----
> From: Mark Thomas [mailto:ma...@apache.org] 
> Sent: Monday, February 26, 2018 2:06 PM
> To: Tomcat Users List <users@tomcat.apache.org>
> Subject: Re: Possible incompatibility from Tomcat 8 to Tomcat 9 on HTTP 302
> 
> On 26/02/18 17:38, Mark A. Claassen wrote:
>> Hi.  I am working on migrating from Tomcat 8 (not 8.5) to Tomcat 9.  
>> Everything worked great, except that when we run Tomcat 9 behind a reverse 
>> proxy, our redirects don't work anymore.  I am able to run the same webapp 
>> under both and am doing so.  The one running under Tomcat 8 works, the one 
>> running under Tomcat 9 does not.
>>
>> I put my webapp on a non-https port and used wireshark.  The 302 responses 
>> are different.  Notice the "Location" is absolute in 8 and relative in 9.
>>
>> Tomcat 8: HTTP/1.1 302 Moved Temporarily\r\n
>> Tomcat 8:   Location: 
>> http://x86test.dev.donnell.com:8502/OcieWS/index.jsp\r\n
>>
>> Tomcat 9: HTTP/1.1 302 \r\n----
>> Tomcat 9:   Location: /OcieWS/index.jsp\r\n
>>
>> The Apache reverse proxy must be able to substitute the proxied full path 
>> using the location is Tomcat 8, but is unable to in Tomcat 9.
>> Anyone know what is going on here?  Is this a bug, or a specification 
>> change, or a bug fix, ...?
> 
> Looks like you have useRelativeRedirects="false" on 8.0.x but "true" on 
> 9.0.x. That is a Context configuration setting.
> 
> Mark
> 
> 
>>
>> Thanks,
>>
>> Mark Claassen
>> Senior Software Engineer
>>
>> Donnell Systems, Inc.
>> 130 South Main Street
>> Leighton Plaza Suite 375
>> South Bend, IN  46601
>> E-mail: mailto:mclaas...@ocie.net
>> Voice: (574)232-3784
>> Fax: (574)232-4014
>>
>> Disclaimer:
>> The opinions provided herein do not necessarily state or reflect those 
>> of Donnell Systems, Inc.(DSI). DSI makes no warranty for and assumes 
>> no legal liability or responsibility for the posting.
>>
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 
> ---------------------------------------------------------------------
> 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

Reply via email to