Subject Re: [firebird-support] Re: Fix GBAK bug about filenames with spaces, when using ServiceManager?
Author Martijn Tonies
> > > It seems this bug (it can't handle filenames with spaces, when
> you use
> > > the ServiceManager) has been hanging around for a long time. Has
> anyone
> > > tried to fix it? It seems to me it ought not to be too hard.
> >
> > Are you sure?
> >
> > I'm using the Services API with filenames including spaces and it
> > appears to work just fine.
> >
> > Martijn Tonies
>
> There are quite a few posts about this. If you use your own code and
> call the ServiceManager directly, it's fine. But if you do it from
> GBAK, you get error messages, like:
>
> My Command:
>
> gbak -b -se localhost:service_mgr -user sysdba -pas mypwd
> -y "C:\program files\donation2\backup.log"
> "C:\Program Files\Donation2\data\donation4.db"
> "c:\Program Files\donation\backup\donation4.db.gbk"
>
> Output:
>
> gbak: ERROR:I/O error for file "files\donation2\backup.log"
> gbak: ERROR: Error while trying to open file
> gbak: ERROR: The system cannot find the path specified.
>
> gbak:Exiting before completion due to errors
>
> All of the posts end up recommending that we use Service Manager
> instead. And there seems to have been at least a related bug filed
> about this in the Jira in 2004, but nothing done about it.

>Is the source code available somewhere that I could try, if
>knowledgeable people agree it ought not to be too hard?

The sources are on SourceForge.net

Feel free to fix it if you have the time :-)


Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com