mirror of
https://github.com/versity/versitygw.git
synced 2026-01-07 04:06:23 +00:00
We were getting errors such as: 2025/02/07 19:24:28 Internal Error, write object data: write exceeds content length 87 whenever the chunk encoding did not have the correct chunk signatures. The issue was that the chunk encoding reader was reading from the underlying reader and then passing the full buffer read back to the caller if the underlying reader returned an error. This meant that we were not processing the chunk headers within the buffer due to the higher level error, and would possibly hand back the longer unprocessed chunk encoded stream to the caller that was in turn trying to write to the object file exceeding the content length limit. Fixes #1056