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

There are no comments yet on this issue.

People

Dates

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