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

Can't connect to database without path from CWD when DatabaseAccess is restricted [CORE4642] #4956

Closed
firebird-automations opened this issue Dec 19, 2014 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pcisar

Is related to CORE1643

When DatabaseAccess configuration option is set to Restrict, an attempt to connect to database file located in CWD without path fails if database is not located in restricted directory-root but in subdirectory

firebird.conf
DatabaseAccess = Restrict /home/data

command:
/home/data/db #⁠ /opt/firebird/bin/isql database.fdb -user sysdba -pas masterkey

Statement failed, SQLSTATE = 08001
I/O error during "open" operation for file "database.fdb"
-Error while trying to open file
-No such file or directory

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue is related to CORE1643 [ CORE1643 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Pavel, there is a problem. I can't fix 4642 not breaking 1643. It was decided that use of default directory from restrict list should have priority over CWD.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Pavel do you have any suggestions what to do with an issue? For me current state of the code looks in agreement with what was requested in CORE1643.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Use of first entry in restrict list is planned behavior.
Probably should be better documented.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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