Repository navigation
Fix 4.4.0 GlitchTip crashes in session re-auth, cryptor, conversations, and data storage search - #17
Merged
Merged
Conversation
…s, and data storage search
…oded fast-travel JSON, and validate searchFiles response shape
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the highest-impact actionable crashes reported in GlitchTip for
4.4.0+98:#54): Remove the request body andapplication/x-www-form-urlencodedcontent type fromDataStorageParser.searchFilesGETrequest (whichNSURLSessionrejects withNSURLErrorDomain code=-1103), mapDioExceptiontoNetworkExceptionand302toUnauthorizedException, and safely decode bothListand JSONStringresponses.#1019,#1020,#1026,#1027,#1029,#56,#70,#842–#898): TrackLanisSession.authGenerationand addreauthenticateIfStale(observedGeneration)so concurrent applet retries share an in-flight re-authentication or skip re-authenticating after a fresh login instead of callingjar.deleteAll()and rotating the encryption key while another applet's retry is in flight.#31,#93,#189,#419): GuardparseAccountType,parseUserData,getFastTravelMenu, andbenutzerverwaltung.php?a=userDataredirects so unexpected redirects/HTML throwUnauthorizedException,PasswordChangeRequiredException, orUnknownExceptioninstead of rawTypeError/FormatException.RangeError (-16)(#185): Reject 16-byteSalted__+ salt payloads with zero ciphertext bytes inCryptor.decryptWithKey.#1022,#56,#70): Handle302redirects, pre-decodedMapvsStringbodies, non-stringrows(e.g.false), and decryptionArgumentError/FormatExceptioninConversationsParser.getHome.Test plan
dart analyze lib test— no issuesdart test— all tests pass (including new tests indata_storage_parser_test.dart,conversations_get_home_test.dart,session_authentication_concurrency_test.dart, andcryptor_test.dart)DataStorageParser.searchFileslive on iOS 27.0 (iPhone 18 Prosimulator) against a real account