[Building Sakai] Missing messages in Sent folder of messages

Wagner, Michelle R. wagnermr at iupui.edu
Thu Oct 8 12:15:20 PDT 2009


Hi Kenwrick,
I'm not sure where those messages went, but I can offer some additional information about how the Messages tool works behind the scenes.  The recipients of the message can be found in MFR_PVT_MSG_USR_T.  Each record in this table maps to the actual message in MFR_MESSAGE_T via messageSurrogateKey.  The TYPE_UUID maps to the folder where this message exists (received, sent, deleted, or a custom folder).  The types (ie folders) are found in the CMN_TYPE_T table.  It also tracks the read/unread status for the message. So there "should" be a record for your user in this table for this message with a TYPE_UUID of the sent folder if it wasn't missing.

If I remember correctly from our own issues with messages, that modified field on the MFR_MESSAGE_T is misleading.  I think that when any recipient reads a message, instead of updating the individual user's read status, it updates the message's collection (the child MFR_PVT_MSG_USR_T recs) and re-saves the entire message object thus changing the modified time.

Let me know if you have any more questions.

Have a great day,
Michelle

On 10/8/09 2:04 PM, "Kenwrick Chan" <kchan at hawaii.edu> wrote:

Folks,
We have a student who reported that she sent out a message and there is no record of it in her Sent folder (sakai 2.5.3).  In sakai_event we do see this:

| 2009-10-03 16:15:34 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/fc6195ec-3278-4ae6-8d5c-ffa2c82bcb61/                                                                               |
| 2009-10-03 16:15:34 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/fc6195ec-3278-4ae6-8d5c-ffa2c82bcb61/An Attribution Theory Analysis of Romantic Jealousy.pdf                        |
| 2009-10-03 16:15:47 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/c1c97d94-2c6d-4ec1-b3f3-04815454e473/                                                                               |
| 2009-10-03 16:15:47 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/c1c97d94-2c6d-4ec1-b3f3-04815454e473/Differentiating Reactive and Suspicious Jealousy.pdf                           |
| 2009-10-03 16:18:44 | messages.new  | /messages/site/MAN.XLSFAMR340rw.201010/Message/418314/00f5a729-ede9-4456-0029-d8f8c3b516cd                                                                               |
| 2009-10-03 16:22:45 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/7d288447-46cb-48d7-ac5f-85031a9524ee/                                                                               |
| 2009-10-03 16:22:45 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/7d288447-46cb-48d7-ac5f-85031a9524ee/Stalking Terrorism at Our Doors.pdf                                            |
| 2009-10-03 16:22:55 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/f6e40318-756b-479b-925e-4b3ddafdfd0d/                                                                               |
| 2009-10-03 16:22:55 | content.new   | /content/attachment/MAN.XLSFAMR340rw.201010/Messages/f6e40318-756b-479b-925e-4b3ddafdfd0d/Traumatic Distress Among Support-Seeking Female Victims of Stalking.pdf        |
| 2009-10-03 16:23:35 | messages.new  | /messages/site/MAN.XLSFAMR340rw.201010/Message/418318/00f5a729-ede9-4456-0029-d8f8c3b516cd                                                                               |

Her uploading two sets of attachments and messages.new.    I checked her subsequent sessions and I didn't find a messages.delete from her.

Looking at those two messages I see:

mysql> select * from mfr_message_t where id='418314';
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
| ID     | MESSAGE_DTYPE | VERSION | UUID                                 | CREATED             | CREATED_BY                           | MODIFIED            | MODIFIED_BY                          | TITLE                               | BODY                                                                                                                                                                                                                                                                                      | AUTHOR           | HAS_ATTACHMENTS | GRADECOMMENT | GRADEASSIGNMENTNAME | LABEL  | IN_REPLY_TO | GRADEBOOK | GRADEBOOK_ASSIGNMENT | TYPE_UUID                            | APPROVED | DRAFT | DELETED | surrogateKey | EXTERNAL_EMAIL | EXTERNAL_EMAIL_ADDRESS | RECIPIENTS_AS_TEXT |
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
| 418314 | PM            |      13 | 73d8d281-303e-420e-a065-b34cd64b12ed | 2009-10-03 16:11:47 | 00f5a729-ede9-4456-0029-d8f8c3b516cd | 2009-10-03 16:18:44 | 00f5a729-ede9-4456-0029-d8f8c3b516cd | Bauerle, Amirkhan, and Hupka (2002) | <p>Dear Annie Response 1 journal articles:</p>
<p>1. &quot;An Attribution Theory Analysis of Romantic Jealousy&quot; by Bauerle, Amirkhan, and Hupka (2002)</p>
<p>2. &quot;Differentiating Reactive and Suspicious Jealousy&quot; by Robert J. Rydell and Robert G. Bringle (2007)</p> | Wandasan, Jazlyn |               1 | NULL         | NULL                | Normal |        NULL | NULL      | NULL                 | 96f6f489-1209-426d-009e-a54e711d5e1b |        0 |     0 |       0 |         NULL |           NULL | NULL                   | All Participants   |
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
1 row in set (0.00 sec)

mysql> select * from mfr_message_t where id='418318';
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-----------------------------------------------------------------+------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
| ID     | MESSAGE_DTYPE | VERSION | UUID                                 | CREATED             | CREATED_BY                           | MODIFIED            | MODIFIED_BY                          | TITLE                                                           | BODY | AUTHOR           | HAS_ATTACHMENTS | GRADECOMMENT | GRADEASSIGNMENTNAME | LABEL  | IN_REPLY_TO | GRADEBOOK | GRADEBOOK_ASSIGNMENT | TYPE_UUID                            | APPROVED | DRAFT | DELETED | surrogateKey | EXTERNAL_EMAIL | EXTERNAL_EMAIL_ADDRESS | RECIPIENTS_AS_TEXT |
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-----------------------------------------------------------------+------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
| 418318 | PM            |      20 | b743ce92-4f7f-4bb7-bea0-a40f6fa02151 | 2009-10-03 16:19:30 | 00f5a729-ede9-4456-0029-d8f8c3b516cd | 2009-10-04 19:08:13 | 6db38c7c-491e-4138-80a8-dcabe854e876 | Douglas K. Snyder, Donald H. Baucom and Kristina C. Gordon 2008 |      | Simmons, Crystal |               1 | NULL         | NULL                | Normal |        NULL | NULL      | NULL                 | 96f6f489-1209-426d-009e-a54e711d5e1b |        0 |     0 |       0 |         NULL |           NULL | NULL                   | All Participants   |
+--------+---------------+---------+--------------------------------------+---------------------+--------------------------------------+---------------------+--------------------------------------+-----------------------------------------------------------------+------+------------------+-----------------+--------------+---------------------+--------+-------------+-----------+----------------------+--------------------------------------+----------+-------+---------+--------------+----------------+------------------------+--------------------+
1 row in set (0.01 sec)

Any sights on how the modified field is used in mfr_message_t?  I haven't been able to replicate updating that field with a different user.  That user does have these two events ..

| 182231183 | 2009-10-04 19:04:19 | messages.read         | /messages/site/MAN.XLSFAMR340rw.201010/Message/418318/6db38c7c-491e-4138-80a8-dcabe854e876                                                                  | 9d945866-41c9-4bbf-8148-1462f83255d2 | a          |

| 182235889 | 2009-10-04 19:08:15 | messages.new          | /messages/site/MAN.XLSFAMR340rw.201010/Message/418318/6db38c7c-491e-4138-80a8-dcabe854e876                                                                  | 9d945866-41c9-4bbf-8148-1462f83255d2 | a          |

I know a double delete (flag message to "Deleted folder", then delete from that folder) generates a messages.delete event and if I move that message to a folder and delete that folder the message is gone, but no event is generated for the whole sequence.

Any insights on where these messages went?

-Kenwrick





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20091008/b07f267f/attachment.html 


More information about the sakai-dev mailing list