[zope2-tracker] [Bug 1479268] [NEW] TarballImportContext crashes when comparing the last char of empty strings
tobias.herp at visaplan.com
Wed Jul 29 10:44:19 CEST 2015
Public bug reported:
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
** Patch added: "tarballimportcontext.patch"
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
TarballImportContext crashes when comparing the last char of empty
To manage notifications about this bug go to:
More information about the zope2-tracker