Comment 1 for bug 1450144

Revision history for this message
Daniel Manrique (roadmr) wrote : Re: server is reporting the wrong size during downloads

Hi Pat,

I tried using curl to download a custom tarball.

First I got only the headers to check the content-length:

roadmr@blackdog:/tmp$ curl --head https://sis.capomastro.canonical.com/pool/custom-3ed576bc5513430feab7a10b370d1d5fcade19fb00bf1d7f39b0d6451c7f26a5.tar.xz
HTTP/1.1 200 OK
Date: Tue, 12 May 2015 13:46:33 GMT
Server: Apache/2.4.7 (Ubuntu)
Last-Modified: Tue, 28 Apr 2015 03:19:25 GMT
ETag: "39373f0-514c0545e921b"
Accept-Ranges: bytes
Content-Length: 59995120
Content-Type: application/x-tar

Next I downloaded the tarball, curl's progress bar and estimates looked OK to me:

roadmr@blackdog:/tmp$ curl --output custom.tar.xz https://sis.capomastro.canonical.com/pool/custom-3ed576bc5513430feab7a10b370d1d5fcade19fb00bf1d7f39b0d6451c7f26a5.tar.xz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 57.2M 100 57.2M 0 0 751k 0 0:01:17 0:01:17 --:--:-- 1039k

Finally I checked the file size matched what the header told me initially:

roadmr@blackdog:/tmp$ ls -la custom.tar.xz
-rw-rw-r-- 1 roadmr roadmr 59995120 May 12 09:48 custom.tar.xz

I also checked the index.json for the channel (ubuntu-touch/tangxi-vivid-proposed) and device (arale), I found this:

                {
                    "checksum": "3ed576bc5513430feab7a10b370d1d5fcade19fb00bf1d7f39b0d6451c7f26a5",
                    "order": 1,
                    "path": "/pool/custom-3ed576bc5513430feab7a10b370d1d5fcade19fb00bf1d7f39b0d6451c7f26a5.tar.xz",
                    "signature": "/pool/custom-3ed576bc5513430feab7a10b370d1d5fcade19fb00bf1d7f39b0d6451c7f26a5.tar.xz.asc",
                    "size": 59995120
                },

so it looks like sizes match everywhere, at least for the custom tarball.

Did you see this with any other components? perhaps the device or ubuntu tarballs?

Did you see this with a delta? if so, could you tell me which version you were at, and which version it was upgrading you to? That way I can hunt down the deltas in the index and check them with the same process.