[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#646040: apt-get encoding '%' as %25 from a HTTP 302 URL



Package: apt
Version: 0.7.25.3ubuntu9.8

When running 'apt-get install' with a package that contains the '+'
character (libstdc++), if the server does a redirect and sends back
the URL with the '+' encoded as %2B, then apt-get will encode the '%'
as %25.  The GET request to the new server then ends up having %252B
(or more occurrences of 2B in the event of multiple redirects) and the
package is not found.


I suggest not re-encoding the Location URL that's returned from the
server when there's a 302.



Reply to: