Skip to content

Conversation

@spadgett
Copy link
Member

@spadgett spadgett commented Feb 6, 2019

@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 6, 2019
@spadgett
Copy link
Member Author

spadgett commented Feb 6, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 6, 2019

ERROR in ./node_modules/patternfly-react/dist/esm/components/Dropdown/Dropdown.js
Module build failed: Error: ENOMEM: not enough memory, read

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 7, 2019

/retest

1 similar comment
@spadgett
Copy link
Member Author

spadgett commented Feb 7, 2019

/retest

return oauth2.Endpoint{}, nil, err
}

kubeAdminLogoutURL := proxy.SingleJoiningSlash(metadata.Issuer, "/logout")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of curious why we have this func vs just using filepath.Join() but I'm sure thats history.

Copy link
Member Author

@spadgett spadgett Feb 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might normalize http:// to http:/ in the URL

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package main

import (
	"fmt"
	"path/filepath"
)

func main() {
	fmt.Println(filepath.Join("http://example.com/", "/logout"))
	
}
---
http:/example.com/logout

Program exited.

// First POST to the console server to clear the console session cookie.
coFetch(window.SERVER_FLAGS.logoutURL, { method: 'POST' })
// eslint-disable-next-line no-console
.catch(e => console.error('Error logging out', e))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are good just logging this error, no handling?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the access token is deleted in the previous request, it's actually OK if this one fails since the console cookie will no longer have a valid token anyway. We might even be able to skip this step.

FWIW, this matches what we do in logout()

https://github.com/openshift/console/blob/master/frontend/public/module/auth.js#L55-L57

There is an edge case where both delete token and logout fail where it could be a problem, though. I guess that could happen if you were disconnected from the internet or the console pod goes away.

@spadgett
Copy link
Member Author

spadgett commented Feb 7, 2019

/retest

1 similar comment
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

flake https://jira.coreos.com/browse/CONSOLE-1266

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

1 similar comment
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

install failed

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

1 similar comment
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

@benjaminapetersen
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 8, 2019
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

9 similar comments
@spadgett
Copy link
Member Author

spadgett commented Feb 8, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

spadgett commented Feb 9, 2019

/retest

@spadgett
Copy link
Member Author

/retest

@spadgett
Copy link
Member Author

/retest

3 similar comments
@spadgett
Copy link
Member Author

/retest

@jhadvig
Copy link
Member

jhadvig commented Feb 10, 2019

/retest

@spadgett
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit e267fcf into openshift:master Feb 10, 2019
@spadgett spadgett deleted the logout-kubeadmin branch February 10, 2019 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants