No permission for SELECT access to blob field in stored procedure. ------------------------------------------------------------------
Key: CORE-5823 URL: http://tracker.firebirdsql.org/browse/CORE-5823 Project: Firebird Core Issue Type: Bug Affects Versions: 3.0.3 Environment: TEST Reporter: Sergey Borisov CREATE ROLE TEST_ROLE; CREATE TABLE TEST ( ID INTEGER, BLB BLOB SUB_TYPE 1 SEGMENT SIZE 80 ); INSERT INTO TEST (ID, BLB) VALUES (1, 'blob1'); commit; SET TERM ^ ; create procedure TEST_PROC (ID integer) returns (BLB TYPE OF COLUMN TEST.BLB) as begin FOR SELECT BLB from TEST WHERE ID = :ID into BLB DO suspend; end^ SET TERM ; ^ GRANT SELECT ON TEST TO PROCEDURE TEST_PROC; GRANT EXECUTE ON PROCEDURE TEST_PROC TO TEST_ROLE; GRANT TEST_ROLE TO USERNAME; connect 'server:base' user 'USERNAME' role 'TEST_ROLE'; /* Next query mistakenly generate error: This user does not have privilege to perform this operation on object. no permission for SELECT access to TABLE TEST. */ select * from TEST_PROC(1); -- 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel