Invalid cache of field privileges in procedure request after their changes
--------------------------------------------------------------------------

                 Key: CORE-5108
                 URL: http://tracker.firebirdsql.org/browse/CORE-5108
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.5.5
         Environment: SUPERSERVER
            Reporter: Roman Simakov


To reproduce it on SuperServer execute:
-------------------------------------------------------
roman:bin$ ./isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/tmp/429.fdb';
Database:  'localhost:/tmp/429.fdb'
SQL> create table t(i integer);
SQL> insert into t values (1);
SQL> commit;
SQL> ^Droman:bin$
roman:bin$ ./gsec
GSEC> add test -pw test
GSEC> roman:bin$
roman:bin$ ./isql -user test -password test
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/tmp/429.fdb';
Database:  'localhost:/tmp/429.fdb', User: test
SQL> set term ^;
SQL> edit^
SQL> set term ;^
SQL> commit;
SQL> show procedures;
Procedure Name                    Invalid Dependency, Type
================================= ======= =====================================
P                                         T, Table
SQL> execute procedure p;
Statement failed, SQLSTATE = 28000
no permission for update/write access to TABLE T
SQL> ^Droman:bin$
roman:bin$ ./isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/tmp/429.fdb';
Database:  'localhost:/tmp/429.fdb'
SQL> grant update(i) on t to test;
SQL> commit;
SQL> ^Droman:bin$
roman:bin$ ./isql -user test -password test
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/tmp/429.fdb';
Database:  'localhost:/tmp/429.fdb', User: test
SQL> execute procedure p;
Statement failed, SQLSTATE = 28000
no permission for update/write access to COLUMN T.I
SQL> update t set i = 3;
SQL> ^Droman:bin$
roman:bin$ ./isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> connect 'localhost:/tmp/429.fdb';
Database:  'localhost:/tmp/429.fdb'
SQL> select * from t;

           I
============
           3
-------------------------------------------------------
Procedure which is used in test case declared as:
create procedure p
as
begin
  update t set i = 2;
end


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to