-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Regression: No re-auth modal when saving editor with invalid session #6048
Comments
I have a failing test in place for this. It appears that ember-simple-auth no longer raises the |
I think the solution to this is going to be further reaching than I first thought. The core problem is this:
Taking into consideration we eventually want to refactor
|
refs TryGhost#6039, closes TryGhost#6047, closes TryGhost#6048 - delete old/unused fixtures file - add failing tests for TryGhost#6047 & TryGhost#6048 - redirect to sign-in if we get a 401 when making an API request - fix incorrect `this.notifications` call in tag controller - raise `authorizationFailed` action in application route's `sessionInvalidated` hook so that it can be handled by leaf routes (fixes re-auth modal display) - close "saving failed" alert when successfully re-authenticated - adds a "window-proxy" util so that we can override `window.*` operations in tests - fix `gh-selectize` attempting to register event handlers when the component has already been destroyed
Steps to reproduce:
ghost:session
in the Local Storage section under the Resources tab and edit youraccess_token
stringExpected result: You are shown the re-authenticate modal from which you're are able to sign-in and continue
Actual result: You are shown an error alert: "Saving failed. The server returned an error (Server was not available)."
The text was updated successfully, but these errors were encountered: