Skip to content

fix: preserve caller event data when preparing batches - #265

Open
Shubham-Padkonde wants to merge 1 commit into
pusher:masterfrom
Shubham-Padkonde:fix/preserve-batch-event-data
Open

Shubham-Padkonde wants to merge 1 commit into
pusher:masterfrom
Shubham-Padkonde:fix/preserve-batch-event-data

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

trigger_batch replaces data in the caller's event dictionaries while serializing and encrypting. Reusing a batch on a private-encrypted channel then encrypts the previous ciphertext instead of the original payload.

Copy each event before preparing its data. Adds a plain-data preservation regression and a repeated encrypted-batch regression that decrypts both requests and checks the original payload. Both tests fail before this change.

Validation: unittest discovery runs 68 tests successfully (one existing skip); git diff --check passes.

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