Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Clear the key packages and app config on ENError = 2 #1359

Merged

Conversation

ArturFriesen
Copy link
Contributor

Description

Resets the key packages and app config when ENError = 2 (badParameter) occurs.

Link to Jira

3297

@ArturFriesen ArturFriesen added the bug Something isn't working label Oct 16, 2020
@ArturFriesen ArturFriesen added this to the v1.5.1 milestone Oct 16, 2020
@ArturFriesen ArturFriesen requested a review from a team October 16, 2020 12:40
@@ -109,11 +109,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// use a custom http client that uses/recognized caching mechanisms
let appFetchingClient = CachingHTTPClient(clientConfiguration: client.configuration)

// we currently use the store as common place for temporal persistency
guard let store = store as? AppConfigCaching else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


// Clear the key packages and app config on ENError = 2 = .badParameter
// For more details, see: https://jira.itc.sap.com/browse/EXPOSUREAPP-3297
func clearCacheOnError2(error: Error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why call this func ..OnError2 and explain the error code in the comment?
I think we should use a better name here, like
clearCacheOnErrorBadParameter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) Renamed!

@marcussc marcussc merged commit 48ece41 into rc/1.5.1 Oct 16, 2020
@marcussc marcussc deleted the fix/3297-Reset_Diagnosis_Key_Cache_on_EN_Error_Code_2 branch October 16, 2020 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants