Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DatabaseAccess configuration parameter for default database location [CORE1643] #2068

Closed
firebird-automations opened this issue Dec 10, 2007 · 15 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Igor Lobov (ivl)

Relate to CORE4642

Add configuration parameter for default databases location.
This parameter could defines location of databases without path and without record at aliases.conf

Commits: ec2eb3f

====== Test Details ======

Can't manupulate firebird.conf and host folders during tests run.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Smirnoff Serg (wildsery)

Parameter is exist, "DatabaseAccess".
I think that database without path should be treated first as alias, than seek on DatabaseAccess path list, and at last at current dir.
Maybe current dir is excess.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Yes, something like this - use DatabaseAccess to locate a database w/o path. Have a look how external tables work now.

But use of current directory to locate database should not be supressed by new feature - legacy applications must work.

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

I think only local connections intentionally use filenames w/o path and the path resolution is handled by the Y-valve in this case, so it will have the precedence automatically. As for the standalone server working via the remote subsystem, filenames w/o path are unlikely to be used. On Windows this means %system% as a working directory :-)

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

priority: Major [ 3 ] => Minor [ 4 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13622 ] => Firebird [ 14034 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

summary: Add configuration parameter for default database location => Use DatabaseAccess configuration parameter for default database location

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Same logic that was used for external tables is applied to databases.
1. Database file is searched for in all directories, present in restrict list.
2. If not found - first one is used as default directory. This let's create database succeed, attach certainyl fails (like expected).

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10362 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue is duplicated by CORE2119 [ CORE2119 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue is duplicated by CORE2119 [ CORE2119 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue relate to CORE4642 [ CORE4642 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Cannot be tested

Test Details: Can't manupulate firebird.conf and host folders during tests run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants