-
Notifications
You must be signed in to change notification settings - Fork 437
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
fix: include instance name in Login7
message and traceID in prelogin
#1668
base: master
Are you sure you want to change the base?
fix: include instance name in Login7
message and traceID in prelogin
#1668
Conversation
Hi @arthurschreiber , are there any other things I need to do get this incorporated into the library? |
Login7
message
@TPVallancourt This seems to break the appveyor build on Windows 🤔 |
src/connection.ts
Outdated
@@ -2484,7 +2485,7 @@ class Connection extends EventEmitter { | |||
} | |||
|
|||
payload.hostname = this.config.options.workstationId || os.hostname(); | |||
payload.serverName = this.routingData ? this.routingData.server : this.config.server; | |||
payload.serverName = this.routingData ? `${this.routingData.server}\\${this.routingData.instance}` : this.config.server; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is instance
here guaranteed to always be a non-empty string? What happens if it's empty?
Login7
messageLogin7
message and traceID in prelogin
@TPVallancourt Hi, just curious if this is planned to be merged and released soon? I am currently relying on this PR for Fabric Warehouse connections |
Fix for #1563
instance
. Previously we just savedserver
which removes the instance name from the redirect URL. This is the proper string for TLS negotiation, but Login7 needs theserver
and theinstance
together.prelogin
payload, include a randomly generated traceID, Starting with TDS37.0 it seems that traceID is no longer optional for Fabric.