chibenwa opened a new pull request, #3070: URL: https://github.com/apache/james-project/pull/3070
Original issue: https://github.com/linagora/tmail-backend/issues/2445 querying mailboxes evetually leads to ``` java.lang.NullPointerException: Cannot invoke "org.apache.james.mailbox.model.MailboxACL$Rfc4314Rights.contains(org.apache.james.mailbox.model.MailboxACL$Right)" because the return value of "java.util.Map.get(Object)" is null at org.apache.james.mailbox.postgres.mail.PostgresMailboxMapper.lambda$findNonPersonalMailboxes$0(PostgresMailboxMapper.java:94) ``` With the PG backend. After the error occured once, the route (and also IMAP requests for team mailboxes) fail with a 100% chance for some time. After some time, the server "recovers" and webadmin and IMAP requests work again. The IMAP error has the following log: 2026-06-23T11:02:48.371Z [INFO ] o.a.james.imap.processor.StatusProcessor - Status failed for mailbox '#TeamMailbox:team-mailbox@teams.<domain>:e5f2fb01-9419-4518-8b42-7acbe64f253f|INBOX' as it does not exist. 2026-06-23T11:02:48.377Z [INFO ] o.a.j.mailbox.store.StoreMailboxManager - Mailbox '#TeamMailbox:team-mailbox@teams.<domain>:e5f2fb01-9419-4518-8b42-7acbe64f253f|INBOX' does not belong to user 'Username{localPart=79c5f16d-1877-4e0d-b7da-cd722dffa391, domainPart=Optional[Domain : users.<domain>]}' but to 'Username{localPart=team-mailbox, domainPart=Optional[Domain : teams.<domain>]}' @felixauringer could you have a look and confirm this addresses your issue please ? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
