Skip to content

implement more rigorous checks of compressed payloads#686

Merged
lukaspie merged 8 commits intomasterfrom
compresssion-checks
Aug 7, 2025
Merged

implement more rigorous checks of compressed payloads#686
lukaspie merged 8 commits intomasterfrom
compresssion-checks

Conversation

@lukaspie
Copy link
Collaborator

@lukaspie lukaspie commented Aug 4, 2025

As discussed in #684, we currently have a bug that compressed values for the sake of type checking get unpacked, but they are also passed to the writer unpacked (entirely removing the compression). We remove that check in #685, but then again, we do not check that the compressed value is actually valid.

This PR applies the same checking logic that we had for native types also do dicts like {"compress": value, strength: 1}, using the same function to check in both cases.

@lukaspie lukaspie requested a review from mkuehbach August 4, 2025 08:58
@lukaspie lukaspie force-pushed the compresssion-checks branch from ba340ca to 90e0434 Compare August 4, 2025 09:04
@lukaspie lukaspie changed the title implement more rigoruous checkings of compressed payloads implement more rigorous checks of compressed payloads Aug 4, 2025
@lukaspie lukaspie force-pushed the compresssion-checks branch from d260f08 to ea0c65a Compare August 4, 2025 09:38
Copy link
Collaborator

@mkuehbach mkuehbach left a comment

Choose a reason for hiding this comment

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

Thank you for the discussion and having a look into it, testing it on em showed the fix to resolve the issue. Polishing comments.

@lukaspie lukaspie mentioned this pull request Aug 6, 2025
@lukaspie
Copy link
Collaborator Author

lukaspie commented Aug 6, 2025

@mkuehbach should be ready to be merged. Let's make a new release afterwards, see #688

@mkuehbach
Copy link
Collaborator

@mkuehbach should be ready to be merged. Let's make a new release afterwards, see #688

Agreed, merge this PR, wrt to the connection to #688 I commented there.

Copy link
Collaborator

@mkuehbach mkuehbach left a comment

Choose a reason for hiding this comment

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

All changes were addressed professionally.

@lukaspie lukaspie merged commit bd4f1e7 into master Aug 7, 2025
16 checks passed
@lukaspie lukaspie deleted the compresssion-checks branch August 7, 2025 06:50
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.

[Bug]: #675 may caused dropping of annotation in template values that enforce the write to compress these

2 participants