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 privileges error during database restore [CORE5745] #6009

Closed
firebird-automations opened this issue Feb 10, 2018 · 5 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Gabor Boros (gaborboros)

I have a very minimal database, just created it and added some SQL users into it. After execute the script which create tables, etc. make a backup with gbak. At restore the below error message appears.

gbak: ERROR:action cancelled by trigger (2) to preserve data integrity
gbak: ERROR: user does not have GRANT privileges for operation
gbak:Exiting before completion due to errors

Commits: f726e7b

====== Test Details ======

Can not reproduce (no errors during restore) . Sent letter 17-feb-18 14:18, waiting for reply.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

reporter: Alexander Peshkov [ alexpeshkoff ] => Gabor Boros [ gaborboros ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Bug was due to missing check for database owner (not sysdba) in system triggers.
Note - there is no need to front-port it to master branch cause related checks are done in it using RDB$SYSTEM_PRIVILEGE system function which correctly performs all required checks.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 3.0.4 [ 10863 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Deferred

Test Details: Can not reproduce (no errors during restore) . Sent letter 17-feb-18 14:18, waiting for reply.

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