james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Carrasco (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HUPA-38) [bug] cache doesn't work in class: InMemoryImapStoreCache
Date Wed, 14 Oct 2009 11:38:31 GMT

     [ 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


Mime
View raw message