plone / plone.protect

HTTP protection utilities for the Plone CMS
https://pypi.org/project/plone.protect/
7 stars 8 forks source link

AttributeError: 'list' object has no attribute 'tree' #31

Closed hvelarde closed 8 years ago

hvelarde commented 8 years ago

I have zillions of these on my instance.log:

2015-11-05T17:50:30 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
  File "/home/abc/xyz/eggs/plone.transformchain-1.0.3-py2.7.egg/plone/transformchain/transformer.py", line 48, in __call__
    newResult = handler.transformIterable(result, encoding)
  File "/home/abc/xyz/eggs/plone.protect-3.0.15-py2.7.egg/plone/protect/auto.py", line 163, in transformIterable
    return self.transform(result, encoding)
  File "/home/abc/xyz/eggs/plone.protect-3.0.15-py2.7.egg/plone/protect/auto.py", line 267, in transform
    root = result.tree.getroot()
AttributeError: 'list' object has no attribute 'tree'

is that a bug? Products.CMFPlone == 4.3.4.1.

davilima6 commented 8 years ago

Yep, plone/Products.CMFPlone#1215. Fixed in #30.

hvelarde commented 8 years ago

thanks!

mauritsvanrees commented 8 years ago

For clarity, this is fixed in the plone.protect 3.0.16 release from yesterday.

hvelarde commented 8 years ago

yes, I saw it and is already installed here; thanks, @mauritsvanrees!