DWR

Relative path in result when invoking an action by DWRAction

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 4.0
  • Component/s: Webwork
  • Description:
    Hide
    See: http://jira.opensymphony.com/browse/WW-1436

    Webwork and DWR integration does not work is the result of an action is relative in the xwork.xml.

    for example:

    When a call:

    DWRActionUtil.execute({namespace:'/secure/collaborator', action:'list', executeResult:'true'}, 'form1', searchResult);

    and my actions is configured as

        <package name="collaborator" extends="secure" namespace="/secure/collaborator">
            <action name="list" class="br.com.quality.sgi.action.CollaboratorSearchAction">
                <result>tableList.jsp</result>
            </action>
          </package>

    It won't work. Webwork will try to redirect to /dwr/call/tableList.jsp and will enter again in DWRAction resulting in a infinite loop and a StackOverflow at the end.

    The workaraound is to put a absolute path in result, like /secure/collaborato/tableList.jsp.

    I do believe that webwork should translate relative paths to absolute paths to avoid this issue.

    Show
    See: http://jira.opensymphony.com/browse/WW-1436 Webwork and DWR integration does not work is the result of an action is relative in the xwork.xml. for example: When a call: DWRActionUtil.execute({namespace:'/secure/collaborator', action:'list', executeResult:'true'}, 'form1', searchResult); and my actions is configured as     <package name="collaborator" extends="secure" namespace="/secure/collaborator">         <action name="list" class="br.com.quality.sgi.action.CollaboratorSearchAction">             <result>tableList.jsp</result>         </action>       </package> It won't work. Webwork will try to redirect to /dwr/call/tableList.jsp and will enter again in DWRAction resulting in a infinite loop and a StackOverflow at the end. The workaraound is to put a absolute path in result, like /secure/collaborato/tableList.jsp. I do believe that webwork should translate relative paths to absolute paths to avoid this issue.

Activity

Joe Walker made changes - 29/Mar/07 3:13 PM
Field Original Value New Value
Component/s webwork [ 10020 ]
Joe Walker made changes - 29/Mar/07 9:49 PM
Fix Version/s 2.2 [ 10025 ]
Joe Walker made changes - 07/Feb/08 2:44 PM
Fix Version/s 3.0 [ 10025 ]
Fix Version/s 4.0 [ 10024 ]
David Marginian made changes - 01/Dec/09 7:00 PM
Assignee Joe Walker [ joe ] David Marginian [ davidmarginian ]

People

Dates

  • Created:
    28/Mar/07 4:10 PM
    Updated:
    01/Dec/09 7:00 PM