beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Ramirez (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Closed: (BEEHIVE-595) PageFlowUtils getActionURI() does not handle qualified action paths correctly
Date Tue, 10 May 2005 21:10:05 GMT
     [ 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


Mime
View raw message