createrepo_c zstd compression doesn't fill in the content size, in the frame header. Python API problems. #415
Labels
Triaged
Someone on the DNF team has read the issue and determined the next steps to take
createrepo_c zstd compression doesn't fill in the content size, in the frame header. This means that you can't call the python API to decompress in the simple/usable way:
...because you'll get an exception:
...the only way to workaround this is to guess at the output size and pass that random number to the decompress API call.
See the documentation on the python API, esp. the 7th paragraph, here: https://python-zstandard.readthedocs.io/en/latest/decompressor.html#zstandard.ZstdDecompressor.decompress
...a simple testcase would be to generate a compressed file and then call zstandard.decompress() from the std. python API.
The text was updated successfully, but these errors were encountered: