Project

Profile

Help

Issue #8506

apt install - File has unexpected size - http pipeline

Added by rgp 4 months ago. Updated 8 days ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

Apt install downloads packages by default using http pipelining. However, apt relies on "Size" field from "Packages" file to match responses, but pulp_deb repos do not appear to have it. In certain condition that causes apt to fail.

root@aptbug:~# curl -sS https://repo.saltproject.io/py3/ubuntu/18.04/amd64/latest/dists/bionic/main/binary-amd64/Packages | grep -c ^Size
14
root@aptbug:~# curl -sS http://foreman.example.com/pulp/deb/MyOrg/Library/custom/Saltstack/ubuntu_18_04_salt_latest/dists/default/all/binary-amd64/Packages | grep -c ^Size
0

More details: https://projects.theforeman.org/issues/32178#note-9


Related issues

Related to Debian Support - Issue #8232: APT publications do not retain all fields from upstream package indeciesMODIFIED<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Has duplicate Debian Support - Issue #8512: deb repo - apt install - File has unexpected size - http pipelineCLOSED - DUPLICATE<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>
Copied to Debian Support - Backport #9167: Backport 8506 to 2.13NEW

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision f4172f48 View on GitHub
Added by mbucher 9 days ago

Add missing "Size" field in publications

also added some more detailed tests for published package-indizes Closes #8506 https://pulp.plan.io/issues/8506

History

#1 Updated by quba42 4 months ago

  • Related to Issue #8232: APT publications do not retain all fields from upstream package indecies added

#2 Updated by quba42 4 months ago

This should not happen, if it is, it's a bug. I will investigate.

#3 Updated by quba42 4 months ago

  • Has duplicate Issue #8512: deb repo - apt install - File has unexpected size - http pipeline added

#4 Updated by quba42 3 months ago

  • Sprint/Milestone set to Katello

#5 Updated by quba42 3 months ago

  • Priority changed from Normal to High

#6 Updated by pulpbot 23 days ago

  • Status changed from NEW to POST

#7 Updated by mbucher 9 days ago

  • Status changed from POST to MODIFIED

#8 Updated by quba42 8 days ago

  • Sprint/Milestone changed from Katello to 2.14.0

#9 Updated by pulpbot 8 days ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#10 Updated by quba42 2 days ago

Please register to edit this issue

Also available in: Atom PDF