microsoft / linux-package-repositories

Microsoft Packaged Linux Software (DEBs, RPMs, etc) are hosted on packages.microsoft.com (PMC) made available as native Linux repositories for use with package managers like APT, YUM, etc.
https://packages.microsoft.com
MIT License
64 stars 17 forks source link

Some of files missing the filesizes and/or dates #78

Closed v-chojas closed 9 months ago

v-chojas commented 1 year ago

Describe the issue

Some files are missing file sizes and dates in the directory view.

When did the issue occur?

Noticed this today.

If applicable, what package did you attempt to install, and from which repo?

N/A, this seems to affect various files.

Steps to Reproduce

Go to https://packages.microsoft.com/ and browse the file listings.

Actual Result

Examples:

https://packages.microsoft.com/centos/8/prod/ - no date nor size for config.repo

https://packages.microsoft.com/rhel/ - directories, so no size is expected, but no dates either

Expected Result

Examples:

https://packages.microsoft.com/debian/12/prod/dists/insiders-fast/ - all entries have sizes (if not directory) and dates

https://packages.microsoft.com/debian/11/prod/dists/bullseye/main/binary-amd64/ - all entries have sizes and dates

Screenshots

sizeanddate nosize nosizenodate

Additional context

N/A

sdherr commented 9 months ago

Yes we know. This is a limitation of the underlying infrastructure. Per the notice on the top-level index page, and the readme it links to, the html index pages are an unsupported interface that is there for human convenience only. If you are trying to build a repo mirroring tool or something the proper way to do that is to parse the actual repo metadata, not scrape the html. See the readme for more details.