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

Unprivileged user is no longer able to see their own context variables in MON$CONTEXT_VARIABLES [CORE6375] #6614

Closed
firebird-automations opened this issue Aug 1, 2020 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @mrotteveel

An unprivileged user (as in: newly created, nothing explicitly granted), is unable to see their own context variables in MON$CONTEXT_VARIABLES.

Steps to reproduce:

1. As SYSDBA create a new user:
create user someuser password 'somepassword';
2. Connect to a database with that user:
connect 'localhost:e:/db/somedatabase.fdb' user someuser password 'somepassword';
3. Add a context variable
select rdb$set_context('USER_SESSION', 'owned_by_someuser', 'true') from rdb$database;
4. Query MON$CONTEXT_VARIABLES
select mon$attachment_id, mon$transaction_id, mon$variable_name, mon$variable_value from mon$context_variables;

Expected: 1 row with variable name 'owned_by_someuser' and value 'true'
Actual behaviour: no row shown

Firebird 3.0.6 behaves as expected.

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

I noticed that after an explicit commit it works fine for the user, so I'll double check my reproduction.

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

This was a mistake on my part. As it turns out in my initial reproduction I had executed a select * from mon$context_variables *before* setting it.

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

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

resolution: Cannot Reproduce [ 5 ]

@firebird-automations
Copy link
Collaborator Author

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
Development

No branches or pull requests

1 participant