Closed nazrulworld closed 3 years ago
An exception is not a response object and it doesn't need to conform to the response object API. I'd consider that a bug in "plone.transformchain". It should check if it really has a response object before calling response APIs.
Thanks a lot for the clarification. I thought this HTTPException will act like wsgi response when I look at this method https://github.com/zopefoundation/zExceptions/blob/master/src/zExceptions/__init__.py#L164
But fully agree on this a bug in "plone.transformchain"
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
From plone BrowserView, replace WSGIRespone with zException.BadRequest
What I expect to happen:
I expect it should return normally with 400 with error message.
What actually happened:
What version of Python and Zope/Addons I am using:
Python: 3.7