[PATCH] yumRepos.py - preserve queryparams in urls
Michael Calmer
mc at suse.de
Fri Sep 12 11:09:09 UTC 2014
Hi,
attached you can find a patch for yum to preserve query parameter in urls.
A second patch for urlgrabber will follow.
Some CDN do token authentication by appending a token to the URL
as query parameter. So the baseurl could be something like:
https://host.domain.top/path/?abcdef1234567890
Simply appending the relative part to it will result in something like this
https://host.domain.top/path/?abcdef1234567890/repodata/repomd.xml
which is simply wrong.
--
Regards
Michael Calmer
--------------------------------------------------------------------------
Michael Calmer
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
T: +49 (0) 911 74053 0
F: +49 (0) 911 74053575 - e-mail: Michael.Calmer at suse.com
--------------------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer
HRB 16746 (AG Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-preserve-queryparams-in-urls.patch
Type: text/x-patch
Size: 1896 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20140912/60f6aea4/attachment.bin>
More information about the Yum-devel
mailing list