Commit Graph

109 Commits

Author SHA1 Message Date
Harry
d6e43f5b3c
Don't crash when missing a file and uploading an attachment 2025-08-04 21:31:16 -07:00
Harry
67e3e4b8e0
Handle missing attachment files in backup uploads 2025-08-04 15:24:00 -07:00
Harry
b1fe641270
SVR🐝 2025-08-04 14:07:33 -07:00
Harry
2cf9fad59e
Fix transit tier upload reuse for media tier uploads 2025-08-04 12:38:22 -07:00
Max Radermacher
53f4db4f27
Throw a specific error when the app is expired 2025-07-29 09:33:00 -05:00
Pete Walters
417c80cded
Explicitly pass in backup keys to backup operations 2025-07-24 14:27:31 -05:00
Max Radermacher
74867f56dd
Split apart “is network failure” and “is timeout” 2025-07-22 15:38:36 -05:00
Harry
92e5cca0f1
Don't locally enforce a max backup upload size limit 2025-07-17 13:51:28 -07:00
Harry
a639acc90f
Don't reuse thumbnail attachment uploads as fullsize uploads and vice versa 2025-07-09 14:11:23 -07:00
Harry
ddf14da93b
Refetch attachments before updating them as uploaded to media tier 2025-07-07 16:28:10 -07:00
Harry
23a05fc28c
Media tier outer encryption quick fixes 2025-07-02 13:54:48 -07:00
Harry
cdb62d38ff
Clean up BackupArchiveAttachmentByteCounter 2025-06-26 16:52:19 -07:00
Harry Sanabria
5ba1743980 Include integrity check when re-encrypting attachment for upload 2025-06-18 10:55:48 -07:00
Harry
94e291ed16
Update to LibSignal v0.74.1 (Backup.LocatorInfo.integrityCheck)
Co-authored-by: Max Radermacher <max@signal.org>
2025-06-16 16:03:35 -07:00
Harry
1255e66119
Allow Attachment plaintextHash to be set even if not a stream 2025-06-16 15:13:08 -07:00
Harry
a8b5e3f85d
Use webP for backup thumbnails 2025-06-16 15:06:52 -07:00
Max Radermacher
b0c183f9f4
De-protocolize/clean up AppExpiry 2025-06-02 15:24:04 -05:00
Harry
3d81e6f18c
Backups x Attachments fixes grab bag 2025-05-22 21:44:09 -07:00
Harry
18853b89d0
Clean up + prepare some shouldOptimizeLocalStorage code 2025-05-20 16:58:18 -07:00
Sasha Weiss
7d6edb6412
Bulk rename MessageBackup types 2025-05-13 11:35:52 -07:00
Harry
cb4026f618
Add BackupAttachmentUploadProgress to drive upload progress bar UI 2025-05-13 09:56:16 -07:00
Harry
162fdbc722
Automatically enqueue new attachment streams for backup media tier upload 2025-05-12 22:11:09 -07:00
Max Radermacher
4dc6c9ff33
Update default value for maxAverageBackoff 2025-04-30 11:58:50 -05:00
Harry
03b57ae646
Make OWSProgress observer async 2025-04-21 10:18:27 -07:00
Max Radermacher
f15537472d
Use clampedNanoseconds where it’s useful 2025-04-08 15:30:36 -05:00
Max Radermacher
6b57c58989
Don’t throw assertions when the app is expired 2025-04-07 22:59:55 -05:00
Pete Walters
5c1eddd411
Fix upload backoff behavior for some specific error cases 2025-03-31 11:27:08 -05:00
Pete Walters
b167d00ef7
Update AttachmentUploadTests to cover both CDN2 and CDN3 2025-03-27 09:09:59 -05:00
Max Radermacher
f554de15e8
Clean up a few things with attachment errors 2025-03-25 16:18:14 -05:00
Sasha Weiss
1a5cbd9183
Rename postNotificationNameAsync to postOnMainThread 2025-03-21 15:28:35 -07:00
Max Radermacher
10cb6f69f7
Use HttpHeaders in more places 2025-03-21 13:53:38 -05:00
Sasha Weiss
bb048e8b59
One transaction type to rule them all and in the darkness bind them 2025-03-13 21:43:35 -07:00
Pete Walters
616cf42f93
Add some throughput logging to attachment upload. 2025-01-27 19:09:30 -06:00
Pete Walters
f4ad46f176
Clean up Upload error handling 2025-01-27 11:04:58 -06:00
Pete Walters
a47f7e387d
On unrecognized failures, check the remote endpoint for upload progress 2025-01-27 10:51:17 -06:00
Max Radermacher
6f02723dbb
Use the web socket where easily possible 2025-01-21 12:26:39 -06:00
Pete Walters
cc8c7107cc
Update URLSession timeout to 5 min for CDN requests 2024-12-20 16:05:05 -06:00
Pete Walters
24b66a3579
Reset the upload attempt count if progress was made in the prior attempt 2024-12-13 12:18:39 -06:00
Pete Walters
5b67c1e7dc
Add internal debug logging for uploads 2024-12-12 16:33:47 -06:00
Pete Walters
128d683a1b
Differentiate some upload logging based on error type 2024-12-12 14:32:59 -06:00
Harry
dcef13c7ed
Use OWSProgress in Attachment Upload and Download Managers 2024-12-10 09:29:30 -08:00
Harry
1fd8d2ed6d
Sayonara, TSResource 2024-12-04 13:30:31 -08:00
Harry
2af0bb31dc
Remove TSResource/Stream/Pointer/Thumbnail, use v2 types directly instead 2024-12-04 13:29:06 -08:00
Harry
06f1e2ec9d
Delete TSAttachment managers and other intermediaries 2024-12-04 13:28:12 -08:00
Adam Sharp
f00c613f38 Mark actor properties nonisolated where it isn't inferred
Swift 6 began generating a warning that `await` is required when accessing
`let` properties on actors where the type is not `Sendable`. (If the type is
`Sendable`, they are automatically inferred to be `nonisolated`.)

This resolves that specific warning, but would generate different warnings
under strict concurrency checking or Swift 6 mode. The ultimate solution should
be to audit these types for sendability.
2024-11-15 19:10:46 -05:00
Max Radermacher
0d655f9e1a
Consolidate error handling for OWSURLSession 2024-11-04 15:49:11 -06:00
Max Radermacher
6d14b97ab6
Use new async OWSUrlSession methods 2024-11-04 15:29:53 -06:00
Pete Walters
3a63402138
Migrate to new Media/Message backup auth credentials 2024-11-01 15:46:58 -05:00
Pete Walters
655e7bd206
Add a "purpose" enum to MBAuthCredentialManager
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-11-01 15:39:11 -05:00
Harry
a8321c4f54
Omit IV from copyToMediaTier request 2024-10-31 09:37:01 -07:00