Skip to content

Comments

Fix: Pass a copy of the properties to avoid mutation of actual dict#5417

Merged
themisvaltinos merged 2 commits intomainfrom
themis/dph
Sep 19, 2025
Merged

Fix: Pass a copy of the properties to avoid mutation of actual dict#5417
themisvaltinos merged 2 commits intomainfrom
themis/dph

Conversation

@themisvaltinos
Copy link
Contributor

This update passes a copy of the rendered properties to avoid mutation before the second possible call.

When in SnapshotEvaluator's evaluate we are in a situation with a code path that leads to both create and insert to happen, since the create_view method internally pops the view_properties dictionary, this caused the second call to lose physical properties that were correctly applied in the first call. This pop always happened but this didn't occur before this: #5189 since these were in separate code paths. Added a test which should fail in main for this reason.

@themisvaltinos themisvaltinos merged commit 50aee2c into main Sep 19, 2025
36 checks passed
@themisvaltinos themisvaltinos deleted the themis/dph branch September 19, 2025 18:18
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.

2 participants