Wrong database location resolution when DatabaseAccess restriced to specified 
directories
-----------------------------------------------------------------------------------------

                 Key: CORE-4691
                 URL: http://tracker.firebirdsql.org/browse/CORE-4691
             Project: Firebird Core
          Issue Type: Bug
          Components: GSTAT
    Affects Versions: 2.5.3 Update 1, 2.5.3, 2.5.2 Update 1, 2.5.2, 2.5.1, 2.5.0
            Reporter: Pavel Cisar


gstat (without user/pwd parameters, just -h header scan) doesn't open database 
in CWD when db filename is specified without full path and filename is located 
in directory listed in DatabaseAccess spec.

Example:

srv:/ssd # /opt/firebird/bin/gstat -h mydb.fdb
Database "/sata/mydb.fdb"

when specifying path it opens correct file:
srv:/ssd # /opt/firebird/bin/gstat -h /ssd/mydb.fdb
Database "/ssd/mydb.fdb"

DatabaseAccess = Restrict /data/db;/data/db2;/sata;/ssd;/ramfs

gstat tries to resolve the given filename via aliases.conf in order to support 
aliases. In 2.5 it was intended that ResolveDatabaseAlias() routine was 
modified to transform relative paths via DatabaseAccess. But it should have 
been done only for the engine, not for utilities that also use 
ResolveDatabaseAlias()


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to