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 "ASF GitHub Bot (JIRA)" <se...@james.apache.org> on 2018/06/06 17:33:00 UTC

[jira] [Commented] (JAMES-1840) NPE on quota update when performed with null user

    [ https://issues.apache.org/jira/browse/JAMES-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16503636#comment-16503636 ] 

ASF GitHub Bot commented on JAMES-1840:
---------------------------------------

GitHub user nstdio opened a pull request:

    https://github.com/apache/james-project/pull/117

    JAMES-1840 NPE on quota update when performed with null user

    Just a small patch to be involved :)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nstdio/james-project JAMES-1840

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/james-project/pull/117.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #117
    
----
commit fd629b49545ac6f2c1661e152cc9040599dc7544
Author: Edgar Asatryan <ed...@...>
Date:   2018-06-06T17:28:40Z

    JAMES-1840 NPE on quota update when performed with null user

----


> NPE on quota update when performed with null user
> -------------------------------------------------
>
>                 Key: JAMES-1840
>                 URL: https://issues.apache.org/jira/browse/JAMES-1840
>             Project: James Server
>          Issue Type: Bug
>          Components: mailbox
>            Reporter: Tellier Benoit
>            Priority: Major
>              Labels: easyfix
>
> When using a null user on a mailbox path...
> {code:java}
> java.lang.NullPointerException: null
> 	at
> DefaultQuotaRootResolver.getQuotaRoot(DefaultQuotaRootResolver.java:58)
> 	at
> ListeningCurrentQuotaUpdater.event(ListeningCurrentQuotaUpdater.java:59)
> 	at createMailbox(StoreMailboxManager.java:474)
> {code}
> Answer *DefaultQuotaRootResolver* accepts mailboxPaths with null users. Also add test cases regarding this in *DefaultQuotaRootResolverTest*.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org