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

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

GitHub user tfg13 opened a pull request:

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

    Fix JAMES-1815: Copy potentially immutable list to allow modifications

    Fixes https://issues.apache.org/jira/browse/JAMES-1815

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

    $ git pull https://github.com/intarsys/james-project JAMES-1815

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

    https://github.com/apache/james-project/pull/47.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 #47
    
----
commit cbd2bdf62ff989a18de614de389568a604968814
Author: Tobias Fleig <[email protected]>
Date:   2016-08-09T09:37:40Z

    Fix for JAMES-1815: Copy potentially immutable list to allow modifications

----


> Crash when reading domainlist via JMX
> -------------------------------------
>
>                 Key: JAMES-1815
>                 URL: https://issues.apache.org/jira/browse/JAMES-1815
>             Project: James Server
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 3.0.0-beta5
>            Reporter: Tobias Fleig
>
> Reading the list of domains via JMX from:
> ObjectName: "org.apache.james:type=component,name=domainlist", Attribute 
> "Domains"
> crashes with:
> java.lang.UnsupportedOperationException
>       at 
> com.google.common.collect.ImmutableCollection.add(ImmutableCollection.java:96)
>       at 
> org.apache.james.domainlist.lib.AbstractDomainList.getDomains(AbstractDomainList.java:131)
>       at 
> org.apache.james.domainlist.lib.DomainListManagement.getDomains(DomainListManagement.java:69)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Some subclasses (JPADomainList, HBaseDomainList, MemoryDomainList) return an 
> ImmutableList in getDomainListInternal(). This list is then modified by 
> getDomains() in AbstractDomainList, which causes the crash above.
> We will supply a patch/pull request.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to