Commit Graph

439 Commits

Author SHA1 Message Date
Greyson Parrelli
0b315220ee Quiet excessive warnings. 2025-03-31 14:44:13 -04:00
Greyson Parrelli
17216316f6 Dynamically compute MediaName and MediaId. 2025-03-31 14:44:06 -04:00
andrew-signal
88fd8fb36b Add handling for AppExpiredConnection in LibSignalChatConnection:connect.
Co-authored-by: Cody Henthorne <cody@signal.org>
2025-03-31 14:44:06 -04:00
Cody Henthorne
d87b313fb3 Only allow ACI auth for websocket at this time. 2025-03-28 10:30:05 -04:00
Cody Henthorne
ca8aa78705 Catch additional CDS exceptions to prevent crash. 2025-03-28 10:03:42 -04:00
Greyson Parrelli
944e861594 Temporarily ignore flaky network test. 2025-03-27 13:27:44 -04:00
Greyson Parrelli
b5da07762c Fix unit of retry-after header. 2025-03-27 13:13:19 -04:00
Alex Hart
0358631029 Add ability to Self-heal SEPA bug. 2025-03-26 16:11:49 -03:00
Jeffrey Starke
0dfe71ca8f Fix crash when changing username on Android API < 24.
Basically, the crash was caused by using `Collections.unmodifiableList()`, which creates an `UnmodifiableCollection` wrapper around the original `List`.

That `UnmodifiableCollection` wrapper contains methods that return `java.util.stream.Stream` – which was added in Java 8, but can be used on Android API < 24 through [desugaring](https://developer.android.com/studio/write/java8-support-table). 

_However_, it appears that when Jackson is using reflection to serialize `ReserveUsernameRequest`, it examines all of the methods of that class. This results in a `java.lang.NoClassDefFoundError: java.util.stream.Stream`, because the reflection is looking at the actual runtime `UnmodifiableCollection` class and not desugared code.

As far as I can tell, that behavior is unavoidable and the only way to avoid this issue is to avoid using `Collections.unmodifiableList()` in classes that are serialized by Jackson on Android API < 24.
2025-03-26 13:59:12 -04:00
andrew-signal
9c48e669ee Remove unneeded test timeout. 2025-03-26 13:59:12 -04:00
andrew-signal
41783368bd Reject invalid TLS proxy configurations. 2025-03-26 13:59:11 -04:00
andrew-signal
9b98337e82 Adjust LibSignalChatConnection.disconnect() so we only transition to DISCONNECTED once. 2025-03-26 13:59:11 -04:00
Greyson Parrelli
7c9cd8964f Update attachment backfill proto. 2025-03-26 13:59:11 -04:00
Greyson Parrelli
dd1697de41 Improve display and management of backup progress. 2025-03-26 13:59:11 -04:00
Cody Henthorne
cef839d300 Add verify AEP screen. 2025-03-26 13:59:11 -04:00
Cody Henthorne
095ae82483 Convert remote config apis to WebSocket. 2025-03-26 13:59:11 -04:00
Jim Gustafson
076b47e695 Improve calling reliability with relay server response cache.
Co-authored-by: Cody Henthorne <cody@signal.org>
2025-03-26 13:59:11 -04:00
andrew-signal
2a767c1e18 Fix races causing flakes in LibSignalChatConnectionTest. 2025-03-26 13:59:11 -04:00
Cody Henthorne
d3f622478f Convert remaining profile apis to use WebSockets and remove REST fallback. 2025-03-26 13:59:11 -04:00
Cody Henthorne
c66819449d Convert provisioning and certificate endpoints to WebSocket and finalize attachments. 2025-03-26 13:59:11 -04:00
Cody Henthorne
aeec3a6f7e Convert prekey requests to WebSocket. 2025-03-26 13:59:11 -04:00
Cody Henthorne
41e0f2193a Convert SVR and GV2 auth requests to WebSocket. 2025-03-26 13:59:11 -04:00
Cody Henthorne
9e9a47f0da Convert WebSocket messaging apis to NetworkResult. 2025-03-26 13:59:11 -04:00
Cody Henthorne
2f4669d7eb Fix web socket management related crashes. 2025-03-25 09:44:38 -04:00
Cody Henthorne
5a0def7390 Prevent unregistered clients from repeatedly attempting an auth WebSockect connection. 2025-03-19 10:48:31 -03:00
Cody Henthorne
323697dfc9 Improve auth WebSocket lifecycle. 2025-03-19 10:48:31 -03:00
Cody Henthorne
0d133b8d1e Improve stacktraces by not wrapping CDS exceptions in RuntimeExceptions. 2025-03-17 09:19:26 -04:00
Cody Henthorne
ddda5e8b47 Revert delete account conversion to WebSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
d2006853c7 Start new style messsage api and convert report spam to WebSocket. 2025-03-12 16:15:41 -04:00
andrew-signal
8101fcbd8d Update to libsignal v0.67.4 2025-03-12 16:15:41 -04:00
Cody Henthorne
b563d7e855 Add headers to StatusCodeError. 2025-03-12 16:15:41 -04:00
Cody Henthorne
e57b6bfe00 Remove WebSocket to REST fallback for attachments. 2025-03-12 16:15:41 -04:00
Cody Henthorne
c476278d4c Remove dead code from PushServiceSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
61a8636217 Convert rate limit apis to WebSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
86b2fe9742 Convert storage service auth to WebSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
6aca7c9194 Convert CDSI auth to WebSocket and service to NetworkResult. 2025-03-12 16:15:41 -04:00
Cody Henthorne
92e590aa3b Convert calling and payments apis to WebSocket. 2025-03-12 16:15:41 -04:00
Cody Henthorne
d6316d955f Remove unusued NetworkFailureException. 2025-03-12 16:15:41 -04:00
Cody Henthorne
cf78c76bbb Convert chat-based backup calls to WebSocket. 2025-03-12 16:15:40 -04:00
Cody Henthorne
305b380fef Convert all account based calls to WebSocket. 2025-03-12 16:15:40 -04:00
Cody Henthorne
c38342e2fb Convert device linking apis to use websockets. 2025-03-12 15:34:49 -04:00
Cody Henthorne
da5c8ff6ea Remove libsignal shadow/bridge websocket infra. 2025-03-12 15:34:48 -04:00
Greyson Parrelli
83611414cc Add support for avatar colors in storage service. 2025-03-12 15:34:48 -04:00
Cody Henthorne
93d18c1763 Separate and kotlinize websockets. 2025-03-12 15:34:48 -04:00
andrew-signal
165322afc1 Queue LibSignalChatConnection::sendRequest() in CONNECTING state. 2025-03-04 15:58:21 -05:00
Greyson Parrelli
9c473fb570 Improve and centralize e164 utils. 2025-03-04 15:58:21 -05:00
Alex Hart
be43f8ce88 IAP Resolve and synchronize payment method from subscription object. 2025-03-04 16:32:13 -04:00
andrew-signal
a31ed28b5f Bump libsignal to v0.67.0.
Enables new CDSI connection logic based on remote config.
2025-02-26 14:01:38 -05:00
andrew-signal
c95073e5dd Harmonize libsignal-net behavior to match existing websocket implementation. 2025-02-20 16:25:41 -05:00
andrew-signal
20cecbd5cd Fix NPE in libsignal-net sendKeepAlive. 2025-02-20 16:25:41 -05:00