Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 56331 invoked from network); 31 Jul 2007 21:42:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2007 21:42:17 -0000 Received: (qmail 21509 invoked by uid 500); 31 Jul 2007 21:42:16 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 21235 invoked by uid 500); 31 Jul 2007 21:42:14 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 21224 invoked by uid 99); 31 Jul 2007 21:42:14 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 14:42:14 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 21:42:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CCB0A71403E for ; Tue, 31 Jul 2007 14:41:52 -0700 (PDT) Message-ID: <19544962.1185918112835.JavaMail.jira@brutus> Date: Tue, 31 Jul 2007 14:41:52 -0700 (PDT) From: "Aman Nanner (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-3357) role is ignored in web.xml In-Reply-To: <27970928.1185484204241.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-3357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aman Nanner updated GERONIMO-3357: ---------------------------------- Attachment: testing.ear.zip This EAR file demonstrates the test case. Access the page: http://localhost/testing. The index.jsp file is defined with a run-as role so that it can make a restricted EJB call. > role is ignored in web.xml > ----------------------------------- > > Key: GERONIMO-3357 > URL: https://issues.apache.org/jira/browse/GERONIMO-3357 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: security > Affects Versions: 2.0-M7 > Environment: Windows XP SP2 > Reporter: Aman Nanner > Assignee: David Jencks > Priority: Critical > Fix For: 2.0 > > Attachments: testing.ear.zip > > > It seems that any roles defined in a web.xml of a web application are ignored. For example, consider the following web.xml fragment: > {code:xml} > > ExceptionPage > /error/Exception.jsp > > TESTSYSTEM > > > {code} > The JSP is never run as the TESTSYSTEM role in this case, and thus access to method-restricted EJBs fails from the JSP. I cannot see in the > TomcatGeronimoRealm where this "run-as" role is being set, or if it is accessing the credential store to get the run-as subject. > Below is the fragment of my geronimo-application.xml where I define the > security policy: > {code:xml} > > > > xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">MyCredentialStore > > > > > > TestingRealm > test-system > > > class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" > name="TESTSYSTEM" /> > > > > > class="org.apache.geronimo.security.realm.GenericSecurityRealm"> > TestingRealm > > ServerInfo > > > xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0"> > wrap-principals="false"> > TestingRealm > com.testing.security.TestingLoginModule > SELECT username, password FROM > utl_user WHERE username=? > name="dataSourceApplication">Mxi/Testing/1/ear > SELECT name, 'TESTSYSTEM' as > role_name FROM dual > name="dataSourceName">com/testing/jdbc/TestDS > > > > > class="org.apache.geronimo.security.credentialstore.SimpleCredentialStoreImpl"> > > xmlns="http://geronimo.apache.org/xml/ns/credentialstore-1.0"> > > > > test-system > > org.apache.geronimo.security.credentialstore.NameCallbackHandler > ananner > > > org.apache.geronimo.security.credentialstore.PasswordCallbackHandler > password > > > > > > > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.