Return-Path: Delivered-To: apmail-incubator-shiro-dev-archive@www.apache.org Received: (qmail 96803 invoked from network); 10 Sep 2010 09:16:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 09:16:57 -0000 Received: (qmail 86851 invoked by uid 500); 10 Sep 2010 09:16:57 -0000 Delivered-To: apmail-incubator-shiro-dev-archive@incubator.apache.org Received: (qmail 86767 invoked by uid 500); 10 Sep 2010 09:16:55 -0000 Mailing-List: contact shiro-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: shiro-dev@incubator.apache.org Delivered-To: mailing list shiro-dev@incubator.apache.org Received: (qmail 86757 invoked by uid 99); 10 Sep 2010 09:16:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:16:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:16:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8A9GY0j004064 for ; Fri, 10 Sep 2010 09:16:34 GMT Message-ID: <5654809.115231284110194220.JavaMail.jira@thor> Date: Fri, 10 Sep 2010 05:16:34 -0400 (EDT) From: "Janne Jalkanen (JIRA)" To: shiro-dev@incubator.apache.org Subject: [jira] Commented: (SHIRO-190) PortFilter not accepting custom port In-Reply-To: <32738463.100191284057333705.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SHIRO-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12907944#action_12907944 ] Janne Jalkanen commented on SHIRO-190: -------------------------------------- Fix verified, works now. Thanks! > PortFilter not accepting custom port > ------------------------------------ > > Key: SHIRO-190 > URL: https://issues.apache.org/jira/browse/SHIRO-190 > Project: Shiro > Issue Type: Bug > Components: Web > Affects Versions: 1.0.0, 1.0.1, 1.1.0, Incubation > Environment: JDK 1.6, OSX 10.5 > Reporter: Janne Jalkanen > Fix For: 1.1.0 > > > The following shiro.ini code no worky. Tomcat running on port 8080, with SSL running on 8443. > {code} > [main] > ssl.port = 8443 > [urls] > /admin/** = ssl > {code} > Access to http://host:8080/admin/foo redirects to https://host:8080/admin/foo, not https://host:8443/admin/foo. > (It looks to me like PortFilter.onAccessDenied() appends the request.getServerPort() instead of the port. If I now read this correctly [might not, this is my first foray into Shiro source], it appears that you can only have SSL on 443 or 80, or else it must be on the same port as the request itself (?)) > As far as I can tell, this occurs in all versions up until the current trunk. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.