Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5241

<s:url includeParams="all"> is generating an invalid url when used in conjunction with ExecuteAndWait interceptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.3
    • 6.1.1
    • Core Tags
    • None

    Description

      After upgrading to v6.0.3 (from v6.0.0), the ExecuteAndWait implementation using this method inserts "!methodName" into the to the refresh url. This results in a url that doesn't match a struts action - resulting in a 404 error.
         
      A real world example is below:

      Action Definition  

      <action name="LetterMergeBulk_contactList" class="com.afs.web.struts.action.letters.LetterMergeBulkAction" method="contactList">
             <interceptor-ref name="ExecuteAndWaitInterceptor" />
             <result name="wait">/struts/letters/letterMergeBulkWait_popup.jsp</result>
             <result>/struts/letters/letterMerge_popup.jsp</result>
      </action>

      ExecuteAndWait (letterMergeBulkWait_popup.jsp) JSP Snippet

      <head>
          <title>Please wait</title>
          <meta http-equiv="refresh" content="5;url=<s:url includeParams="all" />"/>
      </head>

      <s:url> result in v6.0.3 - notice the inserted "!contactList" in the url

      /afs/app/LetterMergeBulk_contactList!contactList.action?struts.token.name=token&token=A9SIKBABK17IZFM6AHSP0QSFIJHLZKJB&letterTemplateId=14773

      <s:url> result in v6.0.0

      /afs/app/LetterMergeBulk_contactList.action?struts.token.name=token&token=A9SIKBABK17IZFM6AHSP0QSFIJHLZKJB&letterTemplateId=14773

       

      This issue was introduced in WW-5190

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              burtonrhodes Burton Rhodes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m