You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org> on 2005/05/10 23:10:05 UTC

[jira] Closed: (BEEHIVE-595) PageFlowUtils getActionURI() does not handle qualified action paths correctly

     [ http://issues.apache.org/jira/browse/BEEHIVE-595?page=all ]
     
Alejandro Ramirez closed BEEHIVE-595:
-------------------------------------


Verified fixed.  I executed the repro steps and now I get the expected output:
EXPECTED: the following output:
        /myWebapp/foo/bar.do
        /myWebapp/another/dir/bar.do 

In addition, Rich modified the /incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/PageFlowUtils.xml BVT test to include this change and the test has been passing.

> PageFlowUtils getActionURI() does not handle qualified action paths correctly
> -----------------------------------------------------------------------------
>
>          Key: BEEHIVE-595
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-595
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta, V1
>     Reporter: Rich Feit
>     Assignee: Alejandro Ramirez
>      Fix For: V1

>
> Repro:
>    - Create a JSP in directory "foo" of a webapp ("myWebapp" in this case).
>    - In the JSP, add the following scriptlet:
>         <%= PageFlowUtils.getActionURI(pageContext.getServletContext(), request, response, "bar") %>
>         <br/>
>         <%= PageFlowUtils.getActionURI(pageContext.getServletContext(), request, response, "/another/dir/bar") %>
>     - Hit the JSP.
> EXPECTED: the following output:
>         /myWebapp/foo/bar.do
>         /myWebapp/another/dir/bar.do
> ACTUAL: the following output:
>         /myWebapp/foo/bar.do
>         /myWebapp/foo/another/dir/bar.do
> Note that in the second case, the path "/foo" is being placed in front of the qualified path "/another/dir/bar".  If the action name starts with a slash, then it is considered to be relative to the webapp root.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira