mattermost-mobile-upstream/app/screens
Amy Blais aa47558a47
Some checks failed
ci / lint-typecheck (push) Has been cancelled
ci / detox-lint-typecheck (push) Has been cancelled
ci / test (push) Has been cancelled
MM-70606: Fix Edit Server pre-auth secret save on HTTPS-redirecting servers (#10252) (#10290)
* fix(MM-70606): send the pre-auth secret over HTTPS only and fix Edit Server save

- sanitizeUrl: useHttp no longer downgrades an explicit https:// URL, so
  getServerUrlAfterRedirect keeps an HTTPS redirect target and strips its
  query string.
- Send the pre-auth secret header only to https/wss URLs: REST client
  default headers, per-request headers, WebSocket, and the HEAD probe.
  The secret is still persisted for the server.
- Edit Server: try HTTPS first, then fall back to HTTP (as Add Server does).
- Edit Server: recreate and reconnect the WebSocket client after the
  secret changes, so the new secret is used without an app restart.

* fix(MM-70606): keep the persisted pre-auth secret on token refresh over HTTP

ClientTracking stores the secret in its own field. The token refresh in
doFetchWithTracking reads that field instead of the request header, which
is only set over TLS, so a refresh on an http:// server no longer resets
the saved secret.

* fix(MM-70606): clarify when the pre-auth secret header is removed

* test(MM-70606): cover the pre-auth header guard in NetworkManager.createClient

(cherry picked from commit c189ca9fdd)

Co-authored-by: Felipe Martin <812088+fmartingr@users.noreply.github.com>
2026-10-30 14:09:40 +02:00
..
apps_form MM-69122: Add file element support to interactive dialogs (#9898) 2026-10-07 14:43:26 -05:00
attachment_options Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
bottom_sheet fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
browse_channels fix: stabilize server switch, saved posts, favorites, and related runtime races (#10122) 2026-09-09 00:35:15 +05:30
channel Calls dm v2 (#10225) (#10288) 2026-10-30 10:36:49 +02:00
channel_add_members Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
channel_bookmark Mm 68219 show placeholder for redacted files (#9719) 2026-10-15 15:59:13 -07:00
channel_configuration Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
channel_files Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
channel_info Mm 70299 channel labels display phase 1 (#10113) 2026-09-17 21:37:43 +02:00
channel_notification_preferences fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
channel_settings Keep users in archived channels when server omits ExperimentalViewArchivedChannels (MM-65820) (#9815) 2026-06-09 19:47:37 +00:00
channel_share Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
code fix: copy code button color (#9784) 2026-06-08 20:56:57 +02:00
component_library Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
convert_gm_to_channel Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
create_direct_message Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
create_or_edit_channel fix: Product fixes to run e2e tests (#10081) 2026-08-26 16:12:37 +05:30
custom_status test(detox): re-submit RF→Detox migration without unintended UI changes (#9847) 2026-06-19 22:44:02 +05:30
custom_status_clear_after Add date/datetime field support with timezone features for Apps Forms (#9521) 2026-07-16 08:09:47 -06:00
data_erased [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
dialog_router MM-69122: Add file element support to interactive dialogs (#9898) 2026-10-07 14:43:26 -05:00
draft_scheduled_post_options Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
edit_post Mm 68219 show placeholder for redacted files (#9719) 2026-10-15 15:59:13 -07:00
edit_profile [MM-69723, MM-69705] Version-gate ChannelBookmarks and CustomProfileAttributes for flag removal (#9916) 2026-07-29 17:14:33 -03:00
edit_server MM-70606: Fix Edit Server pre-auth secret save on HTTPS-redirecting servers (#10252) (#10290) 2026-10-30 14:09:40 +02:00
emoji_picker fix(e2e): Quarantine proven flakes and harden Detox harness (#9971) 2026-07-30 02:40:23 +05:30
find_channels Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
forgot_password Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
gallery Mm 68768 auto cache rolling cleanup (#9958) 2026-09-03 12:46:19 +02:00
global_drafts Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
global_threads MM-56577 Fixing font display issues on thread items (#9630) 2026-05-28 15:11:52 +03:00
home Mm 68219 show placeholder for redacted files (#9719) 2026-10-15 15:59:13 -07:00
in_app_notification fix: push notification navigation delay and stale in-app avatar (#9929) 2026-07-22 14:15:21 +02:00
integration_selector Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
invite fix: app bugs surfaced by Detox RF migration (#9789) 2026-06-09 13:25:42 +05:30
join_team Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
latex Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
login Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
manage_channel_members Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
mfa Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
mm_blocks_content Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
onboarding MM-69550: Update welcome and server onboarding copy for DISC audience (#10046) 2026-08-17 17:05:42 -04:00
pdf_viewer Mm 68219 show placeholder for redacted files (#9719) 2026-10-15 15:59:13 -07:00
permalink Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
pinned_messages Mm 68219 show placeholder for redacted files (#9719) 2026-10-15 15:59:13 -07:00
post_options Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
post_priority_picker Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
reactions prevent crash when reaction emoji is removed while ReactionsScreen is… (#9837) 2026-06-22 12:53:12 +02:00
report_a_problem test(e2e): close manual release-test gaps (#10125) 2026-09-11 09:48:02 +05:30
reschedule_draft Add date/datetime field support with timezone features for Apps Forms (#9521) 2026-07-16 08:09:47 -06:00
review_app Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
scheduled_post_options fix: stabilize server switch, saved posts, favorites, and related runtime races (#10122) 2026-09-09 00:35:15 +05:30
select_team Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
server [MM-70605][MM-70607] Scope pre-auth secret storage per server (#10149) (#10278) 2026-10-27 08:32:25 +02:00
settings [MM-69735] Improve DM call user experience (#10017) 2026-09-03 19:44:10 +00:00
share_feedback Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
show_translation Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
snack_bar Mm 68293 ephemeral mode warnings (#10140) 2026-10-01 18:13:22 +02:00
sso [MM-70605][MM-70607] Scope pre-auth secret storage per server (#10149) (#10278) 2026-10-27 08:32:25 +02:00
table fix: Product fixes to run e2e tests (#10081) 2026-08-26 16:12:37 +05:30
terms_of_service Add E2E coverage for custom terms of service login flow (#10105) 2026-09-01 03:03:53 +05:30
thread [MM-70539] Viewing call thread will restart the app and disconnect the call if you had a different thread open when joining (#10116) 2026-09-24 17:19:53 +05:30
thread_options Mm 67525 bump min version (#9640) 2026-09-16 10:53:06 +00:00
user_profile [MM-69723, MM-69705] Version-gate ChannelBookmarks and CustomProfileAttributes for flag removal (#9916) 2026-07-29 17:14:33 -03:00
watermark Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
background.tsx MM-62240 illustration updates (#9308) 2025-12-05 08:31:59 -05:00
navigation.test.ts Fix passing number strings through screen params (#9931) 2026-07-16 18:21:40 +02:00
navigation.ts Fix passing number strings through screen params (#9931) 2026-07-16 18:21:40 +02:00