FB server reports that DB file is used by another application on secondary
attachment attempt through a symlink
---------------------------------------------------------------------------------------------------------------
Key: CORE-3558
URL: http://tracker.firebirdsql.org/browse/CORE-3558
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 2.5.0
Environment: MS Windows + NTFS
Reporter: Manish Tripathi
Priority: Minor
When the second connection is attempted to the database that is already open by
the server, using a different relative path (which contains symlinks), the
server incorrectly reports that the file is being used by another process.
Example:
Absolute path to the database is "c:\db\application.fdb", first connection to
this database is established successfully.
If we create a symbolic link to the directory "c:\db" and name it, for
instance, "sdb", the path "c:\sdb\application.fdb" would point at the same
database file. However, the server does not seem to be able to recognize this.
I.e., when we try to establish the second connection to the same database using
the path "c:\sdb\application.fdb", the server erroneously reports that the file
is being used by another process.
Proposed resolution:
The server must resolve symlinks before comparing database paths. It appears
that right now when comparing database paths, the server does not resolve
symlinks which tricks the server into believing that different symbolic links
represent different database paths, where in fact they link to the same
database file.
--
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
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel