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

When FB 3 fbclient.dll connects to a remote FB 2.5 server, it tries to open local (client-side) directories and files [CORE6050] #6300

Closed
firebird-automations opened this issue Apr 17, 2019 · 11 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: michalk1 (michalk1)

Attachments:
ProcessMonitorLog.png

When FB 3 fbclient.dll connects to a remote FB 2.5 server, it tries to open local (client-side) directories and files.

isql -user sysdba -password masterkey remotehost/3050:D:\Test.FDB

ProcessMonitor run on the client side reveals that isql attempts to read local (client-side) files and directories ("D:\Test.FDB" in this case). The remote connection is then successfully established, but if the client-side drive is a specific type (internal card reader etc.), the affected application may fail with an error message "There Is No Disk in the Drive. Please Insert a Disk into Drive \Device\harddisk1\Dr1".

Commits: 732785b 91c2fca

@firebird-automations
Copy link
Collaborator Author

Commented by: michalk1 (michalk1)

Process Monitor log

@firebird-automations
Copy link
Collaborator Author

Modified by: michalk1 (michalk1)

Attachment: ProcessMonitorLog.png [ 13339 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: michalk1 (michalk1)

description: When FB 3 fbclient.dll connects to a remote FB 2.5 server, it tries to open local (client-side) directories and files.

isql -user sysdba -password masterkey remotehost/3050:D:\Test.FDB

ProcessMonitor run on the client side reveals that isql attempts to read local (client-side) files and directories. The remote connection is then successfully established, but if the client-side drive is a specific type (internal card reader etc.), the affected application may fail with an error message "There Is No Disk in the Drive. Please Insert a Disk into Drive \Device\harddisk1\Dr1".

=>

When FB 3 fbclient.dll connects to a remote FB 2.5 server, it tries to open local (client-side) directories and files.

isql -user sysdba -password masterkey remotehost/3050:D:\Test.FDB

ProcessMonitor run on the client side reveals that isql attempts to read local (client-side) files and directories ("D:\Test.FDB" in this case). The remote connection is then successfully established, but if the client-side drive is a specific type (internal card reader etc.), the affected application may fail with an error message "There Is No Disk in the Drive. Please Insert a Disk into Drive \Device\harddisk1\Dr1".

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Do not notice something like this on linux.

@firebird-automations
Copy link
Collaborator Author

Commented by: michalk1 (michalk1)

I didn't check it on Linux, the problem may be Windows specific. So far I found no workaround. I tested also the new UNC connection syntax (inet://) , but those strange client-side directory scans are still present. It is like the fbclient at some point tries to fall into local embedded mode, although it is clearly instructed by the TCP connection string that the directory is ment for server. Needless to say, however, that this doesn't happen when connecting FB 2.5 client to FB 2.5 server, or FB 3.0 client to FB 3.0 server.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Please try tomorrow snapshot - should be fixed.

@firebird-automations
Copy link
Collaborator Author

Commented by: michalk1 (michalk1)

I confirm that in current snapshot build 3.0.5.33122 the client-side reads are gone. Thanks for the quick fix.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 3.0.5 [ 10885 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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