struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ej Magdaluyo <ejmagdal...@gmail.com>
Subject Re: Upgrading Struts 2.2.3 to 2.3.34
Date Fri, 13 Oct 2017 09:17:02 GMT
Hi Yasser, Lukasz,

This is to confirm that the issue with fileSizeError was fixed through
Yasser's suggestion :)


Upon checking our application, most of the functionalities seem to be
working now, except for one page which throws an Error403-- Forbidden
error. We are not able to retrieve any logs in relation to this:

Error 403--Forbidden
>From RFC 2068 *Hypertext Transfer Protocol -- HTTP/1.1*:10.4.4 403 Forbidden


struts.xml:

<action name=*"viewMySearchRequest"* method=*"viewMyRequest"* class=
*"com.MyRequestAction"*>

<result name=*"success"* type=*"tiles"*>/viewMySearchRequest</result>

</action>



<action name=*"viewMyRequest"* method=*"viewMyRequest"* class=
*"com.MyRequestAction"*>

<result name=*"success"*>/viewMyRequest.jsp</result>

</action>

tiles.xml:
<definition name="/viewMySearchRequest" extends="baseLayout">
<put-attribute name="title" value="View Request"/>
<put-attribute name="header" value="/jsp/common/headerForApprover.jsp"/>
<put-attribute name="body" value="/jsp/viewMySearchRequest.jsp"/>
</definition>

<definition name="/viewMyRequest" extends="baseLayout">
<put-attribute name="title" value="View Request"/>
<put-attribute name="header" value="/jsp/common/headerForApprover.jsp"/>
<put-attribute name="body" value="/jsp/viewMyRequest.jsp"/>
</definition>


some java snippets (I assume it has something to do with the
imports/implementation given that it is not able to access the page itself):

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;


public class MyRequestAction extends BaseAction implements
ServletRequestAware,ServletResponseAware{
Logger log = new Logger(this.getClass());
HttpServletRequest request;
HttpServletResponse response;
.
.

        *public* String viewMyRequest() *throws* Exception {//My Request
page while clicking view/display icon



               SearchCriteriaVO searchCriteriaVO= constructSearchCriteria();

               MyRequestDelegate myRequestDelegate = *new*
MyRequestDelegate();

               ViewReqDetails = myRequestDelegate.getRequestViewDetails(
searchCriteriaVO);

               ViewReqDetails.setEditApprover(*false*);

               String searchEnabled=request.getParameter("searchEnabled");

               *if*(searchEnabled!=*null*&&searchEnabled.equalsIgnoreCase(
"true")){

               ViewReqDetails.setSearchEnabled(*true*);

               }

               setViewReqDetails(ViewReqDetails);

               request.setAttribute("ViewReqDetails", ViewReqDetails);

               *return*  *SUCCESS*;

        }


public void setServletRequest(HttpServletRequest arg0) {
this.request=arg0;

// TODO Auto-generated method stub

}

public void setServletResponse(HttpServletResponse arg0) {
// TODO Auto-generated method stub
this.response=arg0;
}



Thanks!


On Fri, Oct 13, 2017 at 3:56 PM, Yasser Zamani <yasser.zamani@live.com>
wrote:

>
>
> On 10/13/2017 9:14 AM, Lukasz Lenart wrote:
> > I think we can fix it in 2.5.14
>
> That is a bug inside Ej's custom interceptor, I think.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message