[Bug 1086997] [NEW] apt-get fails if a package has a space in its Filename

Daniel Hartwig mandyke at gmail.com
Thu Dec 6 05:44:34 UTC 2012


On 6 December 2012 13:27, Daniel Hartwig <mandyke at gmail.com> wrote:
> Regardless of how debian-policy defines valid filenames /in control
> files/, the APT Acquire system and HTTP method can be used outside the
> context of debian control files, and should still issue
> correctly-formed HTTP requests and save the files properly.

Acquire system should be ok.  Attaching trivial patch for
methods/http.cc.  Rationale: space (#x20) is a delimiter in the
context of a HTTP Request-Line [1] and therefore must be
percent-encoded in the Request-URI.

[1] <http://tools.ietf.org/html/rfc2616#section-5.1>


** Attachment added: "percent-encode-space.diff"
   https://bugs.launchpad.net/bugs/1086997/+attachment/3452781/+files/percent-encode-space.diff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1086997

Title:
  apt-get fails if a package has a space in its Filename

Status in “apt” package in Ubuntu:
  New

Bug description:
  If a package has a space in its Filename: entry in the Packages file,
  you get errors on HTTP resolution.

  Normal Debian repos don't have a case like that, but the Packages file
  should work even if packages are not stored in the pool in the most
  usual way.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1086997/+subscriptions




More information about the foundations-bugs mailing list