Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 547152 - <net-misc/axel-2.5 truncates redirection URI's over 255 characters
Summary: <net-misc/axel-2.5 truncates redirection URI's over 255 characters
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-20 04:02 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-01-06 01:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
axel-2.4-max-redir-string.patch (axel-2.4-max-redir-string.patch,697 bytes, patch)
2015-04-20 04:02 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-04-20 04:02:58 UTC
Created attachment 401652 [details, diff]
axel-2.4-max-redir-string.patch

eg: 

 axel https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm


-> 403

Reason being ( as confirmed by bintray support ) is axel truncates the 302 redirect URI to 255 characters.

This bug has also been reported here: https://alioth.debian.org/tracker/index.php?func=detail&aid=313080&group_id=100070&atid=413085 , which sports a patch to increase the limit to 1000 characters.

That patch does not apply cleanly, and I've made a variation of it which bumps the limit 4000 characters ( and MAX_STRING to 4096 characters just to be safe )


With the attached patch applied, the above download now works =).
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2017-01-05 22:22:01 UTC
PLease report this upstream.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2017-01-05 22:22:07 UTC
https://github.com/eribertomota/axel
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-06 01:34:42 UTC
(In reply to Justin Lecher from comment #1)
> PLease report this upstream.

I did.

Hence, 

>  This bug has also been reported here: https://alioth.debian.org/tracker/index.php?func=detail&aid=313080&group_id=100070&atid=413085 , which sports a patch to increase the limit to 1000 characters.

After logging in and checking this, the current status of that bug is: 

> Fixed in 2.5 version.
> 
> New repository at https://github.com/eribertomota/axel

And there's a commit that looks similar to my patch at:

https://github.com/eribertomota/axel/commit/ce40ee76c25a84f386128927fcd0bab4e9751268

Seeing you've just added 2.12 though, this should be "really fixed"
simply by upgrading to that :)