-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add check for empty ClusterNames, ServerHostname in retrieving sessions #4027
Conversation
b123ac4
to
6e4fb72
Compare
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.
LGTM, I'll leave others for final review
lib/web/apiserver_test.go
Outdated
c.Assert(err, IsNil) | ||
|
||
var sessionList *siteSessionsGetResponse | ||
json.Unmarshal(res.Bytes(), &sessionList) |
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.
Unmarshal
returns an err which should be checked.
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.
revised
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.
LGTM, pending Forrest's comment
fixes #4012
Description
Teleport node's running < v4.3 does not set ClusterName and ServerHostname for session info, which is needed to form session URL in the UI and to display information. This PR handles this incompatibility.
Manual Testing
Reproduced issue and tested with Proxy/Auth v4.3 with Node v4.2.11
Reliant PR
gravitational/webapps#123