Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A63AD6CF2 for ; Mon, 25 Jul 2011 17:38:38 +0000 (UTC) Received: (qmail 25657 invoked by uid 500); 25 Jul 2011 17:38:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25594 invoked by uid 500); 25 Jul 2011 17:38:37 -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 25584 invoked by uid 99); 25 Jul 2011 17:38:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 17:38:37 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 17:38:36 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F15BD844B9 for ; Mon, 25 Jul 2011 17:38:15 +0000 (UTC) Date: Mon, 25 Jul 2011 17:38:15 +0000 (UTC) From: "Kim Haase (JIRA)" To: derby-dev@db.apache.org Message-ID: <1634144357.4782.1311615495985.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <880983679.14342.1311331377921.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5350) Devguide needs update for definer's rights 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/DERBY-5350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070624#comment-13070624 ] Kim Haase commented on DERBY-5350: ---------------------------------- This looks great, Dag -- +1. Glad you corrected the reference manual cross-reference, too. > Devguide needs update for definer's rights > ------------------------------------------ > > Key: DERBY-5350 > URL: https://issues.apache.org/jira/browse/DERBY-5350 > Project: Derby > Issue Type: Bug > Components: Documentation > Affects Versions: 10.8.1.2 > Reporter: Knut Anders Hatlen > Assignee: Dag H. Wanvik > Attachments: cdevcsecureroles.html, cdevcsecureroles.html, derby-5330a.diff, derby-5350b.diff > > > I found the following in the Using SQL roles topic of the devguide: > "Within stored procedures and functions that contain SQL, the current role is on the authorization stack. Initially, inside a nested connection, the current role is set to that of the calling context." > http://db.apache.org/derby/docs/10.8/devguide/cdevcsecureroles.html > I think this is only correct for procedures running with invoker's rights. For procedures running with definer's rights, no role is set initially, according to the CREATE PROCEDURE statement topic in the reference manual: > "When the procedure is first invoked, no role is set; even if the invoker has set a current role, the procedure running with definer's rights has no current role set initially." > http://db.apache.org/derby/docs/10.8/ref/rrefcreateprocedurestatement.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira