Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 79558 invoked from network); 23 Nov 2005 10:50:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Nov 2005 10:50:03 -0000 Received: (qmail 66849 invoked by uid 500); 23 Nov 2005 10:50:00 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 66779 invoked by uid 500); 23 Nov 2005 10:49:58 -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 66768 invoked by uid 99); 23 Nov 2005 10:49:58 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2005 02:49:57 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 414ED239 for ; Wed, 23 Nov 2005 11:49:36 +0100 (CET) Message-ID: <740362245.1132742976227.JavaMail.jira@ajax.apache.org> Date: Wed, 23 Nov 2005 11:49:36 +0100 (CET) From: "Vamsavardhana Reddy (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-1206) SQLSecurityRealm doesn't work with PostgreSQL In-Reply-To: <1925144006.1132469424888.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1206?page=all ] Vamsavardhana Reddy updated GERONIMO-1206: ------------------------------------------ Attachment: GERONIMO-1206.patch GERONIMO-1206.patch: As per the above comment. Aaron, can you please check if this patch works with PostgreSQL. -Thanks > SQLSecurityRealm doesn't work with PostgreSQL > --------------------------------------------- > > Key: GERONIMO-1206 > URL: http://issues.apache.org/jira/browse/GERONIMO-1206 > Project: Geronimo > Type: Bug > Components: security, databases > Versions: 1.0-M5 > Reporter: Aaron Mulder > Assignee: Aaron Mulder > Fix For: 1.0 > Attachments: GERONIMO-1206.patch > > The SQLSecurity realm tries to be clever and dynamically discover the number of prepared statement parameters (?'s) in the queries. PostgreSQL doesn't support the getParameterMetaData call this relies upon. Since this was just a convenience anyway, I'm going to remove the dynamicness and require that the user and group SQL statements have exactly 1 ? which stands for the username. As in: > SELECT user, password FROM users WHERE username=? > SELECT user, role FROM user_roles WHERE username=? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira