[undertow-dev] problem with root url redirects

Jason Greene jason.greene at redhat.com
Wed Mar 4 11:42:47 EST 2015


Ah yes not sure how my search didn’t miss that its:

https://issues.jboss.org/browse/UNDERTOW-89

I agree we should switch that to a 307

> On Mar 4, 2015, at 10:20 AM, Bill Burke <bburke at redhat.com> wrote:
> 
> I'm pretty sure the 302 happens prior to any auth code being called if you hit the root context of the WAR without a trailing '/'.  This is something Stuart and I talked about before.
> 
> 
> On 3/4/2015 11:13 AM, Jason Greene wrote:
>> Hmm not sure why. A quick search shows we send a 302 as part of the form auth process, but I assume this isn’t form auth?
>> 
>> Could it be servlet code calling sendRedirect()? That is required to send a 302.
>> 
>>> On Mar 4, 2015, at 9:21 AM, Bill Burke <bburke at redhat.com> wrote:
>>> 
>>> Looking at Wildfly 8.2.0,
>>> 
>>> 1. I'm sending a POST  to  /app
>>> 2. Wildfly redirects to /app/ via a 302
>>> 3. Browser does a GET /app/
>>> 
>>> Form data is lost.
>>> 
>>> Why does Wildfly do a redirect?  This has caused me a lot of problems
>>> for our SAML adapter as users have to remember to put a trailing '/' in
>>> their registration URLs.
>>> 
>>> If you insist on doing a redirect, why not send a 307 instead if it is a
>>> non-GET request?
>>> 
>>> --
>>> Bill Burke
>>> JBoss, a division of Red Hat
>>> http://bill.burkecentral.com
>>> _______________________________________________
>>> undertow-dev mailing list
>>> undertow-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/undertow-dev
>> 
>> --
>> Jason T. Greene
>> WildFly Lead / JBoss EAP Platform Architect
>> JBoss, a division of Red Hat
>> 
> 
> -- 
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com

--
Jason T. Greene
WildFly Lead / JBoss EAP Platform Architect
JBoss, a division of Red Hat




More information about the undertow-dev mailing list