Issue Details (XML | Word | Printable)

Key: CORE-6208
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Basil A. Sidorov
Votes: 0
Watchers: 4

If you were logged in you would be able to see more operations.
Firebird Core

CREATE DATABASE grant is lost in security.db after backup/restore cycle

Created: 16/Dec/19 02:18 AM   Updated: 15/Jul/20 03:56 PM
Component/s: None
Affects Version/s: 3.0.4, 4.0 Beta 1
Fix Version/s: 4.0 Beta 2, 3.0.6

File Attachments: 1. Zip Archive (145 kB)

QA Status: Done with caveats
Test Details:

Following values of AuthClient:
    AuthClient = Srp256, Srp, Win_Sspi, Legacy_Auth
    AuthClient = Legacy_Auth, Srp, Srp256, Win_Sspi

-- force delay to be inserted after point when database is overwritten and before we do connect in order to verity grant.
This delay must be significant: 9s for SS and 11s for SC, at least on Windows 8.1 x64 (cpu 3 GHz, ram 12 gb, no workload from other processes).

If we skip this delay then connect will fail with:
    Statement failed, SQLSTATE = 08006
    Error occurred during login, please check server firebird.log for details
-- and firebird.log will contain:
    Authentication error
    cannot start transaction for password database
    Error in isc_start_transaction() API call when working with legacy security database
    connection shutdown
    Database is shutdown.

THE ONLY way to avoid delay is to put 'Srp' ( NOT 'Legacy_Auth' and even not 'Srp256' ! ) in the head of this list.
No such trouble on Classic Server (checked all modes on, build of 05-jan-2020).
Test Specifics: Architecture (SS/CS) specific, Custom configuration required

 Description  « Hide
Check for,, on windows.
Step to reproduce (embedded mode).

set ISC_USER=sysdba

isql security.db
create user owner password 'owner';
grant create database to user owner;
commit; exit;

echo show grant;|isql -q security.db|findstr OWNER
-- all ok: grant present

ren security3.fdb security3.bak
gbak -b security3.bak stdout|gbak -c stdin security.db
echo show grant;|isql -q security.db|findstr OWNER
-- empty output: grant lost

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.