unrestrictedTraverse fails if path contains //
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
If unrestrictedTra
One solution can be to skip the path element if it's an empty string at that point.
--- /usr/lib/
+++ /home/jerome/
@@ -143,6 +143,9 @@
+ if name == '':
+ continue
+
if name[0] == '_':
Changed in zope2: | |
status: | New → Confirmed |
Empty path elements have never been legal.
I'd rather raise a proper NotFound if one is found.