Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 87204 invoked from network); 24 Aug 2006 06:51:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2006 06:51:54 -0000 Received: (qmail 86470 invoked by uid 500); 24 Aug 2006 06:51:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86436 invoked by uid 500); 24 Aug 2006 06:51:33 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 86410 invoked by uid 99); 24 Aug 2006 06:51:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 23:51:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Aug 2006 23:51:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 81E51714303 for ; Thu, 24 Aug 2006 06:48:17 +0000 (GMT) Message-ID: <21981617.1156402097529.JavaMail.jira@brutus> Date: Wed, 23 Aug 2006 23:48:17 -0700 (PDT) From: "Rajesh Kartha (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Reopened: (DERBY-1538) Unexpected behavior on self privilege revocation In-Reply-To: <20133678.1153331353851.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1538?page=all ] Rajesh Kartha reopened DERBY-1538: ---------------------------------- Does not look like the fix has gone into the 10.2 branch yet. I think this check for self privilege is useful, hence Re-opening this issue so it does not get left behind for 10.2 Can one of the committers do the needful to merge this. > Unexpected behavior on self privilege revocation > ------------------------------------------------ > > Key: DERBY-1538 > URL: http://issues.apache.org/jira/browse/DERBY-1538 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.1.0 > Environment: Windows XP Pro > Reporter: Yip Ng > Assigned To: Satheesh Bandaram > Fix For: 10.3.0.0 > > > When revoking the owner's own privilege against the table he have created, Derby executes the revocation successfully > but the owner is able to select from the table later as if though the REVOKE statement has no effect. More importantly, I was expecting a SQLException with the appropriate SQLSTATE to be thrown when the owner attempts to revoke privilege from himself. i.e.: > ij> connect 'jdbc:derby:authtest' user 'yip' as conn1; > ij> create table t1 (c1 int); > 0 rows inserted/updated/deleted > ij> insert into t1 values 1,2,3; > 3 rows inserted/updated/deleted > ij> revoke select on t1 from yip; > 0 rows inserted/updated/deleted > ij> select * from t1; > C1 > ----------- > 1 > 2 > 3 > 3 rows selected > Here is the sysinfo: > > ------------------ Java Information ------------------ > Java Version: 1.4.2_12 > Java Vendor: Sun Microsystems Inc. > Java home: C:\jdk142\jre > Java classpath: derby.jar;derbytools.jar;. > OS name: Windows XP > OS architecture: x86 > OS version: 5.1 > Java user name: yip > Java user home: C:\Documents and Settings\Administrator > Java user dir: C:\derby\trunk\jars\sane > java.specification.name: Java Platform API Specification > java.specification.version: 1.4 > --------- Derby Information -------- > JRE - JDBC: J2SE 1.4.2 - JDBC 3.0 > [C:\derby\trunk\jars\sane\derby.jar] 10.2.0.4 alpha - (423353) > [C:\derby\trunk\jars\sane\derbytools.jar] 10.2.0.4 alpha - (423353) > ------------------------------------------------------ > ----------------- Locale Information ----------------- > Current Locale : [English/United States [en_US]] > Found support for locale: [de_DE] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [es] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [fr] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [it] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [ja_JP] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [ko_KR] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [pt_BR] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [zh_CN] > version: 10.2.0.4 alpha - (423353) > Found support for locale: [zh_TW] > version: 10.2.0.4 alpha - (423353) > ------------------------------------------------------ -- 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