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: V1, V1Beta    
    Reporter: Rich Feit
 Assigned to: Rich Feit 
     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

Reply via email to