You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Manuel Carrasco (JIRA)" <ji...@apache.org> on 2009/10/14 13:38:31 UTC
[jira] Updated: (HUPA-38) [bug] cache doesn't work in class:
InMemoryImapStoreCache
[ https://issues.apache.org/jira/browse/HUPA-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manuel Carrasco updated HUPA-38:
--------------------------------
Attachment: issue_38.diff
This patch fixes the problem.
> [bug] cache doesn't work in class: InMemoryImapStoreCache
> ---------------------------------------------------------
>
> Key: HUPA-38
> URL: https://issues.apache.org/jira/browse/HUPA-38
> Project: JAMES Hupa
> Issue Type: Bug
> Components: server
> Reporter: Manuel Carrasco
> Assignee: Norman Maurer
> Attachments: issue_38.diff
>
>
> CachedIMAPStore.isExpired() method is buggy and InMemoryImapStoreCache.createCachedIMAPStore() method is called every time the user makes an action.
> This line
> if (validUntil < System.currentTimeMillis() && store.isConnected()) {
> has to be replaced by
> if (validUntil > System.currentTimeMillis() && store.isConnected()) {
> But when this is done, most client calls fail.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org