#1643: The chat area spits error pages when a user is not sending messages
----------------------+-----------------------------------------------------
Reporter: madarche | Owner: trac
Type: defect | Status: new
Priority: P2 | Milestone: CPS 3.4.1
Component: CPSChat | Version: TRUNK
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
The chat area spits error pages when a user is not sending messages.
The error occurs each time there is a JavaScript refresh if the user input
area is empty.
{{{
Error Type: KeyError
Error Value:
'message'
Traceback:
Traceback (innermost last):
* Module ZPublisher.Publish, line 113, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 40, in call_object
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 164, in _exec
* Module None, line 4, in cps_chat_post_message
<FSPythonScript at /cps/cps_chat_post_message used for
/cps/members/manager/my_chat>
Line 4
* Module AccessControl.ZopeGuards, line 67, in guarded_getitem
KeyError: 'message'
}}}
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1643>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
Hosting: Nuxeo: Zope service provider