Skip to content

fix(pgp): harden external provider transactions and decrypted output handling - #262

Merged
pando85 merged 3 commits into
mainfrom
fix/openpgp-provider-response-handling
Dec 1, 2026
Merged

pando85 merged 3 commits into
mainfrom
fix/openpgp-provider-response-handling

Conversation

@pando85

@pando85 pando85 commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Coordinate individual OpenPGP API transactions across backend instances without holding the lock during interactive authentication.
  • Validate successful decrypt responses against the provider's plaintext size metadata when available, reject empty plaintext, and clear rejected output.
  • Show a persistent error on the password details screen instead of leaving an empty screen following a provider failure.
  • Add regression tests for missing or inconsistent output, metadata compatibility, buffer clearing, concurrent operations and authentication continuation.

Validation

The new unit tests and the normal Android build/lint checks should run in CI. Physical-device validation with OpenKeychain and a GnuPG-generated test entry is still required. The exact cause on the reporting device has not yet been reproduced. This change does not alter the local PGP backend or recipient matching policy.

Related to #261.

pando85 and others added 3 commits December 1, 2026 21:07
Apply spotless formatting to resolve check-codestyle CI failure:
- Wrap long throw statement in OpenPgpApiBackend.kt
- Remove unused import in DecryptActivity.kt
- Adjust lambda formatting in OpenPgpApiBackendTest.kt
@forkline-bot

forkline-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

✅ Fix pushed: 208e5b2

Applied spotlessApply to fix the spotlessKotlinCheck formatting violations: wrapped the long throw statement in OpenPgpApiBackend.kt, removed the unused snackbar import in DecryptActivity.kt, and adjusted lambda formatting in OpenPgpApiBackendTest.kt.

@pando85
pando85 merged commit 6a46d1e into main Dec 1, 2026
5 checks passed
@pando85
pando85 deleted the fix/openpgp-provider-response-handling branch December 1, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant