mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.25k stars 1.36k forks source link

Untrusted TLS Certificate Error should only appear once at First Connect #7658

Open theAkito opened 12 months ago

theAkito commented 12 months ago

Related Tickets & Issues

Summary

The error about an untrusted TLS certificate constantly appears on every(?) connection to the server in the background.

Environment Information

Steps to reproduce

  1. Connect to a Mattermost server with an expired TLS certificate.
  2. Switch to a safe server & do not use the one with the expired TLS certificate.
  3. See how periodically & on certain actions, the pop-up about this error constantly re-appears.

Expected behavior

The error is shown once & I can, for example, tick "Do not show this again for this session", so it pops up only once on app start, instead of on every connection in the background.

Observed behavior (that appears unintentional)

Error about untrusted TLS certificate, like for example an expired one, pops up on every connection in the background

Possible fixes

Add a "Do not show this again for this session" box to the pop-up so it only is shown once at app start. Or make it configurable via Advanced Settings.

Additional Context

I am currently not using the server with the expired certificate. It's just added to the server list & I need to find the time to fix it, first. Meanwhile, I am using a perfectly safe server. I never access the one with the untrusted certificate. Yet, I constantly get annoying pop-ups, telling me, that the certificate is untrusted, when 1. I know that! 2. I don't use that particular server right now, anyway.

I don't want the pop-up to disappear altogether. All I'm saying is, that once the user is informed in this session, the pop-up ought to not re-appear in the same session of using the mobile app. Should just appear once at every app start. That's it.

amyblais commented 12 months ago

Opened https://mattermost.atlassian.net/browse/MM-55471.