[zope2-tracker] [Bug 1479268] [NEW] TarballImportContext crashes when comparing the last char of empty strings

Tobias Herp tobias.herp at visaplan.com
Wed Jul 29 10:44:19 CEST 2015


Public bug reported:

Products.GenericSetup, v1.7.6:

In Products/GenericSetup/context.py, there are two comparisons of
path[-1] to ‘/’, which must fail for empty strings (which are apparently
a known special case). IMO, here the endswith method must be used.

The empty string seems to be a known special case for tarballs.

I attached a patch.

** Affects: zope2
     Importance: Undecided
         Status: New

** Patch added: "tarballimportcontext.patch"
   https://bugs.launchpad.net/bugs/1479268/+attachment/4435676/+files/tarballimportcontext.patch

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1479268

Title:
  TarballImportContext crashes when comparing the last char of empty
  strings

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1479268/+subscriptions


More information about the zope2-tracker mailing list