Ticket #2109 (new defect)

Opened 10 years ago

Last modified 10 years ago

Comment tool breaking error rendering

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.4.10
Component: CPSComment Version: TRUNK
Severity: normal Keywords:
Cc:

Description

The comment tool issues a component lookup to adapt the context to IDiscussable, but this doesn't work in the context of error rendering, and the exception isn't catched. This breaks the error report, and produces a parasiting error log entry.

End of traceback:

  File "/Users/zopes/pmintranet/Products/CPSComment/commenttool.py", line 203, in isDiscussable
    discussable = IDiscussableContent(object)
  File "/opt/Zope-2.9.7/lib/python/zope/interface/interface.py", line 682, in __call__
    raise TypeError("Could not adapt", obj, self)
TypeError: ('Could not adapt', <App.ProductContext.__FactoryDispatcher__ object at 0x3be5670>, <InterfaceClass Products.CPSComment.interfaces.IDiscussableContent>)

Change History

comment:1 Changed 10 years ago by gracinet

Fixed in changeset f0b7365ce026 Pushed on mercurial.racinet.org

comment:2 Changed 10 years ago by gracinet

  • Owner changed from madarche to gracinet
  • Component changed from CPS (global) to CPSComment
  • Milestone changed from CPS 3.5.0 to CPS 3.4.10

Suitable for 3.4 of course

Note: See TracTickets for help on using tickets.