You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In openshift-rest-client.js the getUserFromAuthToken can fail if the given settings.url has a trailing slash.
For example if settings.url is https://$CLUSTER_HOST:6443/, then the resulting URL becomes https://$CLUSTER_HOST:6443//apis/user.openshift.io/v1/users/~. Notice the double slash? This causes a 404.
I'm happy to submit a PR shortly that safely joins the URL 😄
The text was updated successfully, but these errors were encountered:
In
openshift-rest-client.js
thegetUserFromAuthToken
can fail if the givensettings.url
has a trailing slash.For example if
settings.url
ishttps://$CLUSTER_HOST:6443/
, then the resulting URL becomeshttps://$CLUSTER_HOST:6443//apis/user.openshift.io/v1/users/~
. Notice the double slash? This causes a 404.I'm happy to submit a PR shortly that safely joins the URL 😄
The text was updated successfully, but these errors were encountered: