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

Cannot open FDB file when folder path includes character code of 0x5c. [CORE4993] #1974

Open
firebird-automations opened this issue Nov 7, 2015 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Tatsuya Saito (saito)

Is related to CORE316
Is related to CORE2172

Cannot open FDB file with following condition.

<Steps to reproduce>
1. Put FDB file on following path.
C:\test表z\TEST.FDB
2. Create following folder.
C:\test
3. Open FDB file using isql command.
C:\test表z>isql test.fdb -u user -p password
Statement failed, SQLSTATE = 08001
I/O error during "CreateFile (open)" operation for fi
-Error while trying to open file
-指定されたパスが見つかりません。
Use CONNECT or CREATE DATABASE to specify a database

* "指定されたパスが見つかりません。" means "specified path not found".

<Expected Behavior>
Success to open FDB file.

<Actual Behavior>
Failed to open it like above.

<Operating System>
OS:Windows 7 Professional 64bit
Firebird:2.5.2.26540(Win32)
FDB Charset: CP943C

<Information>
* Success to open it when "C:\test" folder is not exist.
* Success to open it when folder path does not include character code of 0x5c.
* "表" is Japanese character. The code is 0x955c on Shift-JIS.
On Shift-JIS character code set, 0x5c means "\" which is separator of folder path.

@firebird-automations
Copy link
Collaborator Author

Modified by: Tatsuya Saito (saito)

description: Cannot open FDB file with following condition.

<Steps to reproduce>
1. Put FDB file on following path.
C:\test表z\TEST.FDB
2. Create following folder.
C:\test
3. Open FDB file using isql command.
D:\test表z>isql test.fdb -u user -p password
Statement failed, SQLSTATE = 08001
I/O error during "CreateFile (open)" operation for fi
-Error while trying to open file
-指定されたパスが見つかりません。
Use CONNECT or CREATE DATABASE to specify a database

* "指定されたパスが見つかりません。" means "specified path not found".

<Expected Behavior>
Success to open FDB file.

<Actual Behavior>
Failed to open it like above.

<Operating System>
OS:Windows 7 Professional 64bit
Firebird:2.5.2.26540(Win32)
FDB Charset: CP943C

<Information>
* Success to open it when "C:\test" folder is not exist.
* Success to open it when folder path does not include character code of 0x5c.
* "表" is Japanese character. The code is 0x955c on Shift-JIS.
On Shift-JIS character code set, 0x5c means "\" which is separator of folder path.

=>

Cannot open FDB file with following condition.

<Steps to reproduce>
1. Put FDB file on following path.
C:\test表z\TEST.FDB
2. Create following folder.
C:\test
3. Open FDB file using isql command.
C:\test表z>isql test.fdb -u user -p password
Statement failed, SQLSTATE = 08001
I/O error during "CreateFile (open)" operation for fi
-Error while trying to open file
-指定されたパスが見つかりません。
Use CONNECT or CREATE DATABASE to specify a database

* "指定されたパスが見つかりません。" means "specified path not found".

<Expected Behavior>
Success to open FDB file.

<Actual Behavior>
Failed to open it like above.

<Operating System>
OS:Windows 7 Professional 64bit
Firebird:2.5.2.26540(Win32)
FDB Charset: CP943C

<Information>
* Success to open it when "C:\test" folder is not exist.
* Success to open it when folder path does not include character code of 0x5c.
* "表" is Japanese character. The code is 0x955c on Shift-JIS.
On Shift-JIS character code set, 0x5c means "\" which is separator of folder path.

@firebird-automations
Copy link
Collaborator Author

Modified by: Tatsuya Saito (saito)

environment: Windows 7 Professional 64bit => Windows 7 Professional 64bit (Japanese)

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue is related to CORE316 [ CORE316 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue is related to CORE2172 [ CORE2172 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Tatsuya Saito (saito)

Related issues of CORE2172 is not reproduced on my environment, I can open problem path fdb.

In my case, another folder like C:\test is needed to occur it. If not exist the folder, I can open it.

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

1 participant