← Back to issue list

Support not having a Content-Length to work with when downloading the cache

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1595610
Type
issue
State
closed
Author
~sergiusens
Labels
verification-done
Created
Updated
Closed

Current evaluation

Fixed upstream by PR #598 (commit 94c7cbd "Support updating cache without content-length"), released in snapcraft 2.12 to xenial-proposed/-updates; verified by ~elopio and closed by ~janitor as verification-done.

Resolution: closed resolved

Reason: The commit 94c7cbd25 / PR #598 "Support updating cache without content-length" made `snapcraft update` work without a Content-Length header, and shipped in snapcraft 2.12. ~elopio confirmed the fix on xenial with2.12 from -proposed and tagged verification-done; ~janitor then closed the bug noting the SRU fix and ~arges recorded release to -updates.

Evaluated by: mr-cal-bot

No scores available.

Issue body

snapcraft update fails as their is no Content-Length provided. [Impact] * A command doesn't work at all. * This was introduced in master but wasn't released to the distro. [Test Case] * run snapcraft update. [Regression Potential] * None. This is a new command in 2.12.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed upstream by PR #598 (commit 94c7cbd "Support updating cache without content-length"), released in snapcraft 2.12 to xenial-proposed/-updates; verified by ~elopio and closed by ~janitor as verification-done.
stealth/space-bunny-alpha — closed resolved snapcraft update failed when the cache download had no Content-Length header. Fixed by PR #598 (commit 94c7cbd25), merged and released in snapcraft 2.12 to xenial -updates; verification-done after SRU testing.
stealth/space-bunny-alpha — — Cache downloading was made tolerant of missing Content-Length headers, resolving snapcraft update failures; the closed issue is marked verification-done.
qwen/qwen3.6-35b-a3b — — Fixed snapcraft update failure when cache downloads lack a Content-Length header. The resolution was merged and verified, restoring functionality without regression risk.
qwen/qwen3.6-35b-a3b — — Fixed snapcraft update failures caused by missing Content-Length headers during cache downloads. The change was implemented and verified.
qwen/qwen3.6-35b-a3b — — Fixed snapcraft update failure when cache downloads lack a Content-Length header. Marked verification-done, confirming the resolution restores command functionality without regression.
qwen3.6-35b-a3b-mtp-q6 — — Resolved snapcraft update failure when cache downloads lack a Content-Length header. The fix was merged and verified, restoring command functionality without regression.

Update history

Date Change
created

Related work

  • Likely Fixed By: launchpad/snapcraft#598 (confidence 95%)

    PR merged as commit 94c7cbd25 'Support updating cache without content-length (#598)', cited in the 2.12 changelog entry for this bug.

  • Related To: launchpad/snapcraft#588 (confidence 45%)

    PR #588 'Implement `snapcraft update` for parts', the new command in 2.12 that this bug affected.

Related issues

Issue Project State Summary Similarity
#598 Support updating cache without content-length snapcraft merged PR #598 merged as 94c7cbd25, adding cache-update support when HTTP Content-Length is absent and resolving LP #1595610.
77%