As far as i know it wont be struts2 problem probably you have to look into your security config, how you are handling http https route ? i can tell you, we were using strust2 2.3.15.1 distribution with lots of redirectResult without any trouble (we have the similar login https others http route).
-- Thanks & Regards Sreekanth S Nair Java Developer ------------------------------------------- eGovernments Foundation <http://www.egovernments.org> Ph : 9980078913 ------------------------------------------- <http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/> <https://github.com/sreekanthsnair> <sreekanthsn...@hotmail.co.uk> <sreekanths...@gmail.com> ------------------------------------------- On Tue, Dec 16, 2014 at 9:26 PM, <d...@free.fr> wrote: > > Hello all struts2 users > > I have a JEE web application running in HTTP mode all the time except for > authentication where we are in HTTPS. We now need to have HTTPS all the > time. > > While testing, we saw a problem with Struts 2 : "redirectAction" (which > generates 302 status return code on the client side) changes the protocol > from HTTPS to HTTP. > > Example : > > <struts> > <package name="suiviaffaire" namespace="/suiviaffaire" > extends="webapp"> > <action name="*" method="{1}" class="com.myAction"> > > <result name="consultRedirection" type="redirectAction"> > <param > name="actionName">consult?idAffaire=${idAffaire}</param> > <param name="parse">true</param> > <param name="encode">true</param> > </result> > <result name="consult">/jsp/suiviaffaire/consult.jsp</result> > > Network capture : > > 1) status 302 : > https://localhost:8043/webapp/suiviaffaire/redirectionTypeAffaire.action?idAffaire=XXX > 2) status 200 : > http://localhost:8043/webapp/suiviaffaire/consult.action?idAffaire=XXX > > We tested in WebLogic 12c and WebSphere 7 and we experienced the same > issue. Do you know if this a normal behaviour of Struts 2 or a config > problem in our app ? > > Thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >