[Sakai Jira] Commented: (SAKIII-2487) Duplicate message gets sent
Bert Pareyn (JIRA)
sakai-ui-dev-tracking at collab.sakaiproject.org
Tue Mar 8 06:41:02 PST 2011
[ https://jira.sakaiproject.org/browse/SAKIII-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=122235#comment-122235 ]
Bert Pareyn commented on SAKIII-2487:
The current implementation saves a sent message when it handles one. It doesn't matter if it's a message or email, it just create a message. I pushed a fix for the gritter notifications but we should consider one of the following scenario's:
1) Email messages do not get saved into the 'sent messages' category (needs backend change). Still, two posts are needed to send out an email and a normal message.
2) A posted message has an optional parameter 'sendMail' (or similar). When set to 'true' The server will then send out a regular message in Sakai and an email message but will only show one sent message in the 'sent messages' category of the inbox.
I opt for option 1 because this seems to be the easiest to implement solution for the backend, but I'm in no position to decide that. It also allows for easy configuration of emailing capabilities and such, which we will need in the future. The second option is easily configurable as well, but requires more work in the backend (again, second opinion on this is necessary).
> Duplicate message gets sent
> Key: SAKIII-2487
> URL: https://jira.sakaiproject.org/browse/SAKIII-2487
> Project: Sakai 3 UI Dev
> Issue Type: Bug
> Components: Messaging
> Affects Versions: Sprint 103: Stabilization and QA
> Reporter: Chris Tweney
> Assignee: Bert Pareyn
> Send a message to someone, eg. yourself. The messages get sent twice. You'll see two Gritter notices, and two POSTs in Firebug console to message.create.html. Your Sent box will have two copies of the outgoing message. Examining the code in sakai.api.communication.js shows that it will send two copies whenever the sendEmail param is true.
> This reproduces, sort of, on sakai3-demo. You'll see two POSTs to message.create.html, and two Gritter notifications. The messages themselves don't show up in the Sent box. On our installation they do show up there, so sakai3-demo's messaging bundle might be a bit out of date/misconfigured.
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the sakai-ui-dev-tracking