redirect - Struts 2 'redirectAction' changes protocol from HTTPS to HTTP -
i have java ee web application running in http mode time except authentication in https. need have https time.
while testing, saw problem struts 2 : "redirectaction" (which generates 302 status return code on client side) changes protocol https 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 , websphere 7 , experienced same issue. know if normal behaviour of struts 2 or config problem in our app?
as @aleksandr m said, seems issue apache server. when ssl activated in weblogic console , hit directly, don't have issue. when hitting apache server, have issue. seems others had issue :
Comments
Post a Comment