Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with caller privileges option don't work with autonomous transaction option [CORE3799] #4142

Closed
firebird-issue-importer opened this issue Mar 26, 2012 · 8 comments

Comments

@firebird-issue-importer

Submitted by: eXandr (i.reg)

Is related to QA495

In execute statement the "with caller privileges" option doesn't work with "with autonomous transaction" option

Commits: a935f95 660fa3b

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 26, 2012

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 29, 2012

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.2 [ 10450 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 29, 2012

Modified by: @hvlad

Version: 2.5.0 [ 10221 ]

Version: 3.0 Initial [ 10301 ]

summary: with caller privileges option dont work with autonomous transaction option => with caller privileges option don't work with autonomous transaction option

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 29, 2012

Commented by: @hvlad

Simple test case

gsec -add vlad -pw v

isql -user SYSDBA -pass masterkey

create table t (id int);
set term ^ ;

create procedure p
as
begin
execute statement 'insert into t values(current_transaction)'
with caller privileges
with autonomous transaction;
end
^

grant all on table t to procedure p^
grant execute on procedure p to user vlad^
exit^

isql -user vlad -pass v

execute procedure p;

Statement failed, SQLSTATE = 28000
no permission for insert/write access to TABLE T
-At procedure 'P' line: 2, col: 3

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 27, 2014

Modified by: @pcisar

Link: This issue is related to QA495 [ QA495 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 29, 2015

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 25, 2015

Commented by: @pcisar

Test created.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Sep 25, 2015

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants