Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give blosc2 distinct content-encoding #729

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

danielballan
Copy link
Member

Follow-up on #719, making an important correction.

Blosc2 can read blosc1-encoded data, but blosc1 cannot read blosc2-encoded data. Therefore, new Tiled servers will send old tiled clients bytes encoded as content-encoding: blosc but the clients were not be able to decode the bytes. @pbeaucage hit this in the wild after we deployed Tiled v0.1.0a119 to tiled.nsls2.bnl.gov yesterday.

This PR renamed the content-encoding header from blosc to blosc2. I considered this in #719 but could not quite tell which was correct. In retrospect it seems unambiguous that this is a distinct encoding and needs a distinct header value.

Copy link
Contributor

@padraic-shafer padraic-shafer left a comment

Choose a reason for hiding this comment

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

Overall this looks right. I noted a couple things as comments.

Also, is it worth updating this how-to in the current PR?
https://github.com/bluesky/tiled/blob/main/docs/source/how-to/client-logger.md

CHANGELOG.md Outdated Show resolved Hide resolved
docs/source/explanations/compression.md Show resolved Hide resolved
danielballan and others added 3 commits April 25, 2024 15:23
Co-authored-by: Padraic Shafer <76011594+padraic-shafer@users.noreply.github.com>
@padraic-shafer padraic-shafer merged commit 8a5421a into bluesky:main Apr 25, 2024
9 checks passed
@danielballan danielballan deleted the blosc2-name branch April 25, 2024 19:48
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