Issue #SCB2874 () email notification subject sometimnes contains wrong status
Hussayn Dabbous <[email protected]> Fri, 29 May 2009 02:30:00 +0200 (CEST)
| Newsgroups | gmane.comp.java.scarab.issues |
|---|---|
| Message-ID | <[email protected]> |
Activity report on *Defect SCB2874 - email notification subject sometimnes contains wrong status* Scarab Link: http://www.solitone.org/scarab/issues/id/SCB2874 Module: Scarab Activity generated by Hussayn Dabbous ([email protected]) at 05/29/2009 02:24 *Reasons for the changes* *Comments* - By Hussayn Dabbous - 05/29/2009 02:24 --- "I think it is a cache problem. The NotificationManager caches the issue attribute-values the first time it reads them. At least this is true for the status attribute. In all subsequent calls the retrieved value of the status-attribute remains the same independent of the current value in the issue itself. Interestingly when looking into the notification body, the value is correct again. Hence i think that the email-body-generator does not use the cache at all, so it allways reads from the database and every attribute is reported correctly in the email body. The wrong display of the issue-status can be corrected by adding a ScarabCache.clear() at the start of the NotificationManager. But does this imply, that the whole Scarab cache will be invalidated every time when the NM runs ? Or does the NM run it own ScarabCache instance ? " ------------------------------------------------------ http://scarab.tigris.org/ds/viewMessage.do?dsForumId=458&dsMessageId=2356628 To unsubscribe from this discussion, e-mail: [[email protected]].