jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angela Schreiber (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (OAK-9117) ConcurrentModificationException in PermissionEntryProviderImpl.loadEntries
Date Thu, 18 Jun 2020 07:20:00 GMT

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

Angela Schreiber edited comment on OAK-9117 at 6/18/20, 7:19 AM:
-----------------------------------------------------------------

[~akhoury], thanks for reporting. could you provide instructions on how to reproduce this
with Oak only (i.e. without Sling and AEM on top of it)? I would like to exclude the possibility
that the {{ConcurrentModificationException}} is caused by concurrent session access, which
is not supported in Oak (see http://jackrabbit.apache.org/oak/docs/dos_and_donts.html).


was (Author: anchela):
[~akhoury], thanks for reporting. could you provide instructions on how to reproduce this
with Oak only (i.e. without Sling and AEM on top of it? I would like to exclude the possibility
that the {{ConcurrentModificationException}} is caused by concurrent session access, which
is not supported in Oak (see http://jackrabbit.apache.org/oak/docs/dos_and_donts.html).

> ConcurrentModificationException in PermissionEntryProviderImpl.loadEntries
> --------------------------------------------------------------------------
>
>                 Key: OAK-9117
>                 URL: https://issues.apache.org/jira/browse/OAK-9117
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 1.8.7
>            Reporter: Andrew Khoury
>            Priority: Major
>
> It seems that ConcurrentModificationException can occur in PermissionEntryProviderImpl.loadEntries
[1].
> The issue was reported via Adobe product forums:
>  [https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/concurrency-modification-exception/qaq-p/366611/comment-id/76072#M76072]
> Additional report of the same issue can be found here:
> [https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/concurrentmodificationexception/qaq-p/312815#M65848]
> [1]
> {code:none}
> Caused by: java.util.ConcurrentModificationException: null
>         at java.util.HashMap$HashIterator.nextNode(Unknown Source)
>         at java.util.HashMap$KeyIterator.next(Unknown Source)
>         at org.apache.jackrabbit.oak.security.authorization.permission.PermissionEntryProviderImpl.loadEntries(PermissionEntryProviderImpl.java:163)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.security.authorization.permission.PermissionEntryProviderImpl.getEntries(PermissionEntryProviderImpl.java:142)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.security.authorization.permission.CompiledPermissionImpl$TreePermissionImpl.getGroupEntries(CompiledPermissionImpl.java:579)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.security.authorization.permission.CompiledPermissionImpl$TreePermissionImpl.access$1400(CompiledPermissionImpl.java:459)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.security.authorization.permission.CompiledPermissionImpl$LazyIterator.getNext(CompiledPermissionImpl.java:624)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.security.authorization.permission.CompiledPermissionImpl$LazyIterator.getNext(CompiledPermissionImpl.java:589)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.commons.iterator.AbstractLazyIterator.hasNext(AbstractLazyIterator.java:39)
[org.apache.jackrabbit.jackrabbit-jcr-commons:2.16.3]
>         at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542)
>         at org.apache.jackrabbit.oak.security.authorization.permission.CompiledPermissionImpl$TreePermissionImpl.canRead(CompiledPermissionImpl.java:531)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.core.SecureNodeBuilder$ReadablePropertyPredicate.apply(SecureNodeBuilder.java:384)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.core.SecureNodeBuilder.getProperty(SecureNodeBuilder.java:180)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.plugins.tree.impl.AbstractTree.getProperty(AbstractTree.java:251)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.core.MutableTree.getProperty(MutableTree.java:128)
[org.apache.jackrabbit.oak-core:1.8.7]
>         at org.apache.jackrabbit.oak.plugins.tree.TreeUtil.getStringInternal(TreeUtil.java:116)
[org.apache.jackrabbit.oak-security-spi:1.8.7]
>         at org.apache.jackrabbit.oak.plugins.tree.TreeUtil.getPrimaryTypeName(TreeUtil.java:88)
[org.apache.jackrabbit.oak-security-spi:1.8.7]
>         at org.apache.jackrabbit.oak.spi.security.user.util.UserUtil.isType(UserUtil.java:63)
[org.apache.jackrabbit.oak-security-spi:1.8.7]
>         at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByPath(AuthorizableBaseProvider.java:72)
[org.apache.jackrabbit.oak-core:1.8.7]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message