You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Andrei Markov (JIRA)" <ji...@apache.org> on 2013/01/20 19:30:13 UTC
[jira] [Updated] (TAP5-2031) BaseURLSourceImpl added default secure
port to absolute url
[ https://issues.apache.org/jira/browse/TAP5-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Markov updated TAP5-2031:
--------------------------------
Priority: Minor (was: Trivial)
> BaseURLSourceImpl added default secure port to absolute url
> -----------------------------------------------------------
>
> Key: TAP5-2031
> URL: https://issues.apache.org/jira/browse/TAP5-2031
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3.1
> Reporter: Andrei Markov
> Priority: Minor
>
> BaseURLSourceImpl.getBaseURL(boolean secure) shoudn't add port 443 for secure url.
> if (port <= 0) {
> port = request.getServerPort();
> int schemeDefaultPort = request.isSecure() ? 443 : 80;
> portSuffix = port == schemeDefaultPort ? "" : ":" + port;
> }
> else if (secure && port != 443) portSuffix = ":" + port;
> else if (port != 80) portSuffix = ":" + port;
> The last line doesn't check secure flag, but it should be.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira