-
-
Notifications
You must be signed in to change notification settings - Fork 172
Description
Not sure if this is a recent change, but recently have hit instances where weird truncation is occurring due to branch names, which in turn causes an erroneous 404 and failure.
Here is one example I just hit, where disabling the userscript results in the branch zip download success:
https://github.com/hoppfrosch/Clipjump/tree/hoppfrosch/feature/class_clipjumpdb
With the Zip userscript disabled, the repo zip ball download is: https://github.com/hoppfrosch/Clipjump/archive/hoppfrosch/feature/class_clipjumpdb.zip
But with the zip userscript enabled, an inspect reveals the link becomes: https://api.github.com/repos/hoppfrosch/Clipjump/zipball/hoppfrosch/fea…
Which oddly results in the redirect and eventual 404 error and the address bar value of: https://codeload.github.com/hoppfrosch/Clipjump/legacy.zip/hoppfrosch/fea%E2%80%A6
Note the weird addition of legacy.zip
in the final redirect url - does that make any sense to you?
It's obvious what's happening in the truncation, but without a lot of digging I'm not clear on exactly where in the code it's being thrown off or a root cause, but I'm sure you'll take one look and probably have a good idea. Note I've only seen this occur on longer-named branches other than master.