You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Erik Pilz (JIRA)" <ji...@apache.org> on 2006/04/28 00:54:19 UTC
[jira] Created: (WW-1302) UrlHelper omits a forward slash when
supplied a relative URL and the scheme changes
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 Action 2
Type: Bug
Components: Views
Versions: WW 2.2.1, WW 2.2.2
Environment: WinXP, Tomcat 5.5, J2SE 5.0
Reporter: Erik Pilz
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Commented: (WW-1302) UrlHelper omits a forward slash when
supplied a relative URL and the scheme changes
Posted by "Erik Pilz (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1302?page=comments#action_37214 ]
Erik Pilz commented on WW-1302:
-------------------------------
I should add that this problem affects WebWork 2.1.7 as well.
> 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 Action 2
> Type: Bug
> Components: Views
> Versions: WW 2.2.1, WW 2.2.2
> Environment: WinXP, Tomcat 5.5, J2SE 5.0
> Reporter: Erik Pilz
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Updated: (WW-1302) UrlHelper omits a forward slash when
supplied a relative URL and the scheme changes
Posted by "Erik Pilz (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1302?page=all ]
Erik Pilz updated WW-1302:
--------------------------
Attachment: UrlHelperTest.patch
The attached patch adds a test case to UrlHelperTest to illustrate the problem.
> 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 Action 2
> Type: Bug
> Components: Views
> Versions: WW 2.2.1, WW 2.2.2
> Environment: WinXP, Tomcat 5.5, J2SE 5.0
> Reporter: Erik Pilz
> Attachments: 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Commented: (WW-1302) UrlHelper omits a forward slash when
supplied a relative URL and the scheme changes
Posted by "Erik Pilz (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1302?page=comments#action_37219 ]
Erik Pilz commented on WW-1302:
-------------------------------
The UrlHelper.patch file that is attached to WW-1301 fixes this issue.
> 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 Action 2
> Type: Bug
> Components: Views
> Versions: WW 2.2.1, WW 2.2.2
> Environment: WinXP, Tomcat 5.5, J2SE 5.0
> Reporter: Erik Pilz
> Attachments: 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Updated: (WW-1302) UrlHelper omits a forward slash when
supplied a relative URL and the scheme changes
Posted by "Erik Pilz (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1302?page=all ]
Erik Pilz updated WW-1302:
--------------------------
Attachment: UrlHelperTest.patch
The original patch for UrlHelperTest was for WW-1301. Please use the updated file. Sorry about that.
> 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 Action 2
> Type: Bug
> Components: Views
> Versions: WW 2.2.1, WW 2.2.2
> Environment: WinXP, Tomcat 5.5, J2SE 5.0
> Reporter: Erik Pilz
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org