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

Grant and Revoke update (field) [CORE4407] #4729

Closed
firebird-automations opened this issue Apr 28, 2014 · 5 comments
Closed

Grant and Revoke update (field) [CORE4407] #4729

firebird-automations opened this issue Apr 28, 2014 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Tomas Beran (berant)

I have a problem with permissions. I test this problem on new database.
I have two users (User1 and User2), one table (TEST_TABLE (PKID, NAME, AGE)). I set permission select and update(AGE) to both users. Now everything is all right, but when I revoke permission to USER2 (revoke select, update(AGE)), then USER1 has not permission to update fields (but he should have).

Example:
create table TEST_TABLE ( PKID integer, NAME varchar(10), AGE integer,
constraint TEST_PKID primary key (PKID));

commit;

insert into TEST_TABLE values (1, 'TEST', 99);

grant select, update(AGE) on TEST_TABLE to USER1, USER2;

--USER1 or USER2:
update TEST_TABLE set AGE = 1; --both can update

revoke select, update(AGE) on TEST_TABLE from USER2;
--USER1:
update TEST_TABLE set AGE = 1; --no permission to update

Now USER1 has no permission for update/write access to COLUMN TEST_TABLE.AGE
but has permission to select. If I grant update on whole TEST_TABLE then everything all right, but if I set permission on one field,
permissions are wrong.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Tomas Beran (berant)

Version: 3.0.7 [ 10940 ]

environment: Linux 3.13.0-24-generic (Ubuntu 14.04) => Linux 5.4.0-58-generic (Ubuntu 20.04)

@hubeny
Copy link

hubeny commented Nov 22, 2022

Hi,

I tested this bug again and the problem is actual on last build of FB3 (3.0.10) and last build of FB4 (4.0.2). Is there any time plan to fix it?

Thank you,

Jan Hubeny

@AlexPeshkoff
Copy link
Member

Confirm an issue in all versions, suppose will fix till next fb4 release.

@hubeny
Copy link

hubeny commented Nov 22, 2022

Hi Alex,

please add also label:"affect-version: 3.0.10". I tested it again and it really affect also version 3.0.10.

Thank you,

H.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment