-
Notifications
You must be signed in to change notification settings - Fork 731
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
App crash on homeserver registration #5218
Comments
thanks for raising, would it be possible to provide the synapse configuration changes you've made? (so we can setup a local environment with the same configuration) Also submitting a rageshake/logs would also help us narrow down the issue! |
I can repro the crash by hacking the code (adding
Adding it to our milestone |
Hi @ouchadam @bmarty , in order to find the best fix for that crash, I am wondering the purpose of the I am asking the question because the |
@mnaturel from my understanding the soft logout is triggered by receiving a the session instance is provided via @Provides
fun providesCurrentSession(activeSessionHolder: ActiveSessionHolder): Session {
return activeSessionHolder.getActiveSession()
} which means the provided session is unrecognised rather than unauthenticated and can still access unauthenticated endpoints, datastores and eventually re-authenticate itself |
Okay thanks for explaining. The problem is that in fun getActiveSession(): Session {
return activeSession.get()
?: throw IllegalStateException("You should authenticate before using this")
} It means in the case of onboarding, injecting |
ah, the |
…istration #5218: Fix crash at registration when redirecting to Web View
Steps to reproduce
Outcome
What did you expect?
Browser should open the homeserver url
What happened instead?
App crash
Your phone model
Samsung galaxy s8+
Operating system version
Android 9
Application version and app store
Element v1.3.18, App Store
Homeserver
Synapse v1.52.0
Will you send logs?
No
The text was updated successfully, but these errors were encountered: