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
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.