Page MenuHomePhabricator

Hash collision on ExtDist, occurs 404 Not Found on Extension Distributor
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • It redirects to 404 Not Found

What should have happened instead?:
Should be downloaded normally.

Software version (skip for WMF-hosted wikis like Wikipedia): REL1_39

Other information (browser name/version, screenshots, etc.):
Seems like there's a bug? mistake? on the extdist. REL1_39 of Math has 8-chracter-length of commit sha. unlike others (which only has 7)
Thankfully, Extdist has autoindex so I figured out easily.

image.png (111×211 px, 6 KB)

So, Filename should be Math-REL1_39-0484bb2.tar.gz for Extension Distributor

Event Timeline

MPThLee renamed this task from Extension Distributor has an issue with Math Extension REL1_39 to Extension Distributor has an issue with Math Extension REL1_39 - Wrong filename.Jun 30 2023, 6:46 PM

I just made a script for autoindex page that extract non-standard(?) format items.
console.log([...document.querySelectorAll("pre > a")].slice(1).map(t => t.getAttribute("href")).filter(str => !/\w+-(?:REL1_[0-9]{2}|master)-[a-z0-9]{7}.tar.gz/.test(str)).join("\n"))
And Math-REL1_39-0484bb21.tar.gz is the one and only.

$ git show 0484bb
error: short object ID 0484bb is ambiguous
hint: The candidates are:
hint:   0484bb21 commit 2023-06-20 - Localisation updates from https://translatewiki.net.
hint:   0484bb20 blob

Issue was solved by new commit triggered by Translate Wiki. But there's a small chance of this issue happens again.

Change 937473 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/ExtensionDistributor@master] ExtDistProvider: Increase length of short hash

https://gerrit.wikimedia.org/r/937473

Change 937474 had a related patch set uploaded (by Reedy; author: Reedy):

[labs/tools/extdist@master] Increase hash length to 10 characters

https://gerrit.wikimedia.org/r/937474

MPThLee renamed this task from Extension Distributor has an issue with Math Extension REL1_39 - Wrong filename to Hash collision on ExtDist, occurs 404 Not Found on Extension Distributor.Jul 23 2023, 6:27 AM

I just changed title to make it clearer.

Bawolff claimed this task.
Bawolff subscribed.

An alternate fix was merged (Still 7 chars, but use 7 even if ambiguous)