[ http://issues.apache.org/struts/browse/WW-1302?page=all ]

Don Brown resolved WW-1302.
---------------------------

    Fix Version/s: 2.0.1
       Resolution: Fixed
         Assignee: Don Brown

Fixed, thanks for the patch!

> UrlHelper omits a forward slash when supplied a relative URL and the scheme 
> changes
> -----------------------------------------------------------------------------------
>
>                 Key: WW-1302
>                 URL: http://issues.apache.org/struts/browse/WW-1302
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: WW 2.2.1, WW 2.2.2
>         Environment: WinXP, Tomcat 5.5, J2SE 5.0
>            Reporter: Erik Pilz
>         Assigned To: Don Brown
>             Fix For: 2.0.1
>
>         Attachments: UrlHelperTest.patch, UrlHelperTest.patch
>
>
> When building a URL and switching the scheme, a relative URL won't be 
> constructed correctly. The following example assumes the request is served 
> over HTTP.
> Input:
> <ww:url value="feature-matrix.pdf" scheme="https" />
> Expected Output:
> https://www.example.com/mywebapp/feature-matrix.pdf";
> Actual Output:
> https://www.example.com/mywebappfeature-matrix.pdf";

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

        

Reply via email to