-
Notifications
You must be signed in to change notification settings - Fork 602
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
1.9.2 authenticated-route-mixin - queryParam regression #1915
Comments
To confirm my assumptions, this is using
So, |
I think this is a bug in Ember.js actually where the router service is not 100% compatible with calling e.g. |
@marcoow I think this is correct. I submitted a PR emberjs/ember.js#18244 to fix this, however I think this should be reviewed by someone who is more familiar with the inner workings of the ember routing system. |
This is related to emberjs/ember.js#17494 and emberjs/ember.js#14875 |
@IBue this bug should be fixed in recent ember releases (at least I was never able to reproduce it after my PR was merged). Are you still experiencing the same error with latest versions? |
Would be interesting if you are still seeing this with ember >= 3.14.1. (I don't know if the fix has actually been backported yet) However, I am afraid I can not be of more help here right now. I am just a little surprised that I have never seen this issue reappear after upgrading to 3.14.1 |
Starting ember-simple-auth version 1.9.2 ( I think it's very likely related to 84c076d ) ember shows a pretty strange error when using query params and a route is trying to be accessed that applies the authenticated-route-mixin. As it looks it only shows up when the user is not authenticated and the redirect is triggered. Reverting back to 1.9.1 fixes the issue
Likely related:
When debugging authenticated-route-mixin::triggerAuthentication it looks like
this.get('_authRouter')
returns the RouterServicewhereas:
this.get('_router')
returns a different router (probably the internal ember router)at least:
this.get('_router') != this.get('_authRouter')
Probably in the 1.9.1. implementation the
_router
property defined in the mixing was overridden with the ember router and has therefore been working (but that is getting a little vague now)The text was updated successfully, but these errors were encountered: