https://bugs.documentfoundation.org/show_bug.cgi?id=144163

--- Comment #25 from Julien Nabet <serval2...@yahoo.fr> ---
(In reply to Lionel Elie Mamane from comment #24)
> Julien, you wrote in comment 15 that the odb bug reproduction file contains
> the "old way" fdb file, not the "new way" fbk file, or did I misunderstand?
> That is a key question, and the basis of my idea.
> 
> My hope is that runBackupService chokes on that file, but the firebird
> engine does not.
> 
> So you need to extract the .fdb file from the odb (like old LibreOffice was
> doing) and isc_attach_database to that.

It seems I had to be really confused since I mixed fbk and fdb.

Here's the result of unzipping the odb file from Wolfgang's attachment (comment
10):
unzip Test-db.zip 
Archive:  Test-db.zip
 extracting: mimetype                
  inflating: content.xml             
  inflating: database/firebird.fbk   
   creating: forms/
   creating: Configurations2/
  inflating: settings.xml            
   creating: reports/
  inflating: META-INF/manifest.xml

So we got an fbk not an fdb.

Then, runBackupService is called in
connectivity/source/drivers/firebird/Connection.cxx:
    300             if (m_bIsEmbedded && !bIsFdbStored) // We need to restore
the .fbk first
    301             {
    302                 runBackupService(isc_action_svc_restore);
    303             }

m_bIsEmbedded is true since it's an embedded Firebird.
bIsFdbStored is false since there's no fdb in odb file (and so !bIsFdbStored is
true and LO calls runBackupService)

Very sorry about the confusion I brought :-(

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to