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

Throw Exception in case we have a failed entry to ensure Abortion of the Transaction (EXPOSUREAPP-2405) #1134

Merged

Conversation

jakobmoellerdev
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev commented Sep 9, 2020

Signed-off-by: d067928 jakob.moeller@sap.com

This is done to ensure we do not submit files with remaining files after a failure is cleared in the Download Cache. Testable by provoking a download failure and not seeing exposure checks anymore as well as an IOException wrapped by a Transaction Exception if done in foreground

…the Transaction.

Signed-off-by: d067928 <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev requested a review from a team September 9, 2020 13:07
Signed-off-by: d067928 <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev force-pushed the fix/throw-exception-for-failure-in-key-retrieval branch from 01153fc to 46eba10 Compare September 9, 2020 13:33
@sonarcloud
Copy link

sonarcloud bot commented Sep 9, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

@harambasicluka harambasicluka merged commit bae3e62 into dev Sep 9, 2020
@harambasicluka harambasicluka deleted the fix/throw-exception-for-failure-in-key-retrieval branch September 9, 2020 13:48
jakobmoellerdev added a commit that referenced this pull request Sep 9, 2020
…the Transaction (EXPOSUREAPP-2405) (#1134)

* Throw Exception in case we have a failed entry to ensure Abortion of the Transaction.

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Adjust test to not expect call to clear cache files

Signed-off-by: d067928 <jakob.moeller@sap.com>
harambasicluka added a commit that referenced this pull request Sep 17, 2020
* New Scan Confirmation Texts Change (EXPOSUREAPP-2427) (#1097)

Co-authored-by: harambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: Jakob Möller <jakob.moeller@sap.com>

* New Strings for Risikobegegnung mit niedrigem Risiko (EXPOSUREAPP-2462) (#1106)

* + new strings

* let the app not crash on other languages than DE

* values for lint and tests

* made bad test a comment

* removed unnecessary strings

* more string fixes

Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
Co-authored-by: Luka Harambasic <luka.harambasic@sap.com>

* Remove Cache Clearing to reduce CDN load on failing devices (EXPOSUREAPP-2405) (#1108)

* Remove Cache Clearing to reduce CDN load on failing devices. This ideally needs to be accompanied by a way to clear the cache manually and a way to identify more root causes of Transaction Failures.

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Remove Files that failed for Key Retrieval

Only Remove Files from Cache that failed to download, instead of every file. This is accompanied ideally by no rollback in the Key Retrieval. We only delete the cache ref, the file will not be deleted as it is considered not present

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Introduce dedicated QuotaCalculator for Unit Testing

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Refactor QuotaCalculator for LocalData Property Access and Write Tests

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Use Instant on the Device Read since this is not timezone specific

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Add specific state for the quota calculation and dedicated rollback

Signed-off-by: d067928 <jakob.moeller@sap.com>

* PR Comments

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Feature: Update low risk string (EXPOSUREAPP-1971) (#1125)

* Improve Explanation for "Risikobegegnung mit niedrigem Risiko" (EXPOSUREAPP-1971) (#1112)

* Adapt QuotaCalculatorTest to old JUnit4 API

Signed-off-by: d067928 <jakob.moeller@sap.com>

* [INTERNAL] Translation delivery: commit by LX Lab (#1132)

Change-Id: Ib76a9ea2b03163a05dd8b6acf2179262f9bcf5bf

* Removed ar & ru and updated defaults (#1133)

* Throw Exception in case we have a failed entry to ensure Abortion of the Transaction (EXPOSUREAPP-2405) (#1134)

* Throw Exception in case we have a failed entry to ensure Abortion of the Transaction.

Signed-off-by: d067928 <jakob.moeller@sap.com>

* Adjust test to not expect call to clear cache files

Signed-off-by: d067928 <jakob.moeller@sap.com>

* version bump to 1.3.1

* Reverted replaced wording (EXPOSUREAPP-2638) (#1153)

* Fix: No exposure with low risk so far

* Fixed klint issues (#1144)

* restored reverted replaced wording for lint

* #1153 (comment)

* fixed term

* Align TestFragment Crash behavior with background transaction crash behavior.

* Add logging mechanism to debug hotfix issue.

* Lint Resolvement, Nav Graph Issue clean, Enable Log for deviceForTesters, Correct Quota Tests due to now lacking exception

Signed-off-by: d067928 <jakob.moeller@sap.com>

Co-authored-by: Philipp Woessner <64482866+pwoessner@users.noreply.github.com>
Co-authored-by: Jakob Möller <jakob.moeller@sap.com>
Co-authored-by: Rituraj Sambherao <54317407+ritsam@users.noreply.github.com>
Co-authored-by: harambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: chris-cwa <69595386+chris-cwa@users.noreply.github.com>
Co-authored-by: Luka Harambasic <luka.harambasic@sap.com>
Co-authored-by: SAP LX Lab Service Account <tmsatsls+github.com_service-tip-git@sap.com>
Co-authored-by: Matthias Urhahn <matthias.urhahn@sap.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants