[JBoss JIRA] (ISPN-6258) Authorication can fail with NPE when no subject is provided
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-6258?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec updated ISPN-6258:
--------------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 8.2.0.CR1
8.2.0.Final
Resolution: Done
> Authorication can fail with NPE when no subject is provided
> -----------------------------------------------------------
>
> Key: ISPN-6258
> URL: https://issues.jboss.org/browse/ISPN-6258
> Project: Infinispan
> Issue Type: Bug
> Components: Security
> Reporter: Vojtech Juranek
> Assignee: Vojtech Juranek
> Fix For: 8.2.0.CR1, 8.2.0.Final
>
>
> When user's subject is null, authorization on secured cache can fail with NPE bellow, instead of logging {{SecurityException}}
> {noformat}
> 15:14:47,795 ERROR [org.infinispan.server.hotrod.HotRodEncoder] (HotRodServerWorker-9-1) ISPN005022: Exception writing response with messageId=2: java.lang.NullPointerException
> at org.infinispan.security.impl.CachePrincipalPair.<init>(CachePrincipalPair.java:17)
> at org.infinispan.security.impl.AuthorizationHelper.checkSubjectPermissionAndRole(AuthorizationHelper.java:103)
> at org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:76)
> at org.infinispan.security.impl.AuthorizationManagerImpl.checkPermission(AuthorizationManagerImpl.java:37)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ISPN-6271) Stream filterKeys reads remotely owned keys when it shouldn't
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-6271?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-6271:
--------------------------------
Summary: Stream filterKeys reads remotely owned keys when it shouldn't (was: Stream filterKeys reads keys not owned remotely when it shouldn't)
> Stream filterKeys reads remotely owned keys when it shouldn't
> -------------------------------------------------------------
>
> Key: ISPN-6271
> URL: https://issues.jboss.org/browse/ISPN-6271
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Affects Versions: 8.1.2.Final
> Reporter: William Burns
> Assignee: William Burns
> Fix For: 8.2.0.CR1
>
>
> The filterKeys method currently isn't as performant as it should be per ISPN-6270. However this was by design for the first pass. However despite this there is an issue where when performing the stream population using the keys that it will read all non owned keys from remote owners when it shouldn't be. This is an easy fix by forcing the cache to do a LOCAL only read.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ISPN-6227) ContinuousQueryMultipleCachesDistTest fails randomly
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6227?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-6227:
--------------------------------
Status: Open (was: New)
> ContinuousQueryMultipleCachesDistTest fails randomly
> ----------------------------------------------------
>
> Key: ISPN-6227
> URL: https://issues.jboss.org/browse/ISPN-6227
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
>
> {code}
> [UnitTestTestNGListener] Test testContinuousQueryMultipleCaches(org.infinispan.query.continuous.ContinuousQueryMultipleCachesDistTest) failed.
> 165702 [ERROR] UnitTestTestNGListener: Test testContinuousQueryMultipleCaches(org.infinispan.query.continuous.ContinuousQueryMultipleCachesDistTest) failed.
> org.infinispan.commons.CacheListenerException: java.util.concurrent.ExecutionException: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:804) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:937) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.cache.impl.CacheImpl.addListener(CacheImpl.java:722) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.query.continuous.impl.ContinuousQueryImpl.addContinuousQueryListener(ContinuousQueryImpl.java:43) ~[classes/:?]
> at org.infinispan.query.continuous.AbstractCQMultipleCachesTest.createContinuousQuery(AbstractCQMultipleCachesTest.java:53) ~[test-classes/:?]
> at org.infinispan.query.continuous.AbstractCQMultipleCachesTest.testContinuousQueryMultipleCaches(AbstractCQMultipleCachesTest.java:65) ~[test-classes/:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) ~[testng-6.8.8.jar:?]
> at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200) ~[testng-6.8.8.jar:?]
> at org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner.run(BMNGAbstractRunner.java:58) ~[byteman-bmunit-2.1.4.jar:?]
> at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) ~[?:?]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
> at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212) ~[testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:707) [testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) [testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) [testng-6.8.8.jar:?]
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) [testng-6.8.8.jar:?]
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) [testng-6.8.8.jar:?]
> at org.testng.TestRunner.privateRun(TestRunner.java:767) [testng-6.8.8.jar:?]
> at org.testng.TestRunner.run(TestRunner.java:617) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) [testng-6.8.8.jar:?]
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) [testng-6.8.8.jar:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
> Caused by: java.util.concurrent.ExecutionException: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.commons.util.concurrent.NoOpFuture.get(NoOpFuture.java:44) ~[infinispan-commons-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:800) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> ... 31 more
> Caused by: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.distexec.DefaultExecutorService.submit(DefaultExecutorService.java:419) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.distexec.DefaultExecutorService.submit(DefaultExecutorService.java:408) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.distexec.DistributedExecutionCompletionService.submit(DistributedExecutionCompletionService.java:178) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:794) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> ... 31 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ISPN-6227) ContinuousQueryMultipleCachesDistTest fails randomly
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-6227?page=com.atlassian.jira.plugin.... ]
Work on ISPN-6227 started by Adrian Nistor.
-------------------------------------------
> ContinuousQueryMultipleCachesDistTest fails randomly
> ----------------------------------------------------
>
> Key: ISPN-6227
> URL: https://issues.jboss.org/browse/ISPN-6227
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Reporter: Adrian Nistor
> Assignee: Adrian Nistor
>
> {code}
> [UnitTestTestNGListener] Test testContinuousQueryMultipleCaches(org.infinispan.query.continuous.ContinuousQueryMultipleCachesDistTest) failed.
> 165702 [ERROR] UnitTestTestNGListener: Test testContinuousQueryMultipleCaches(org.infinispan.query.continuous.ContinuousQueryMultipleCachesDistTest) failed.
> org.infinispan.commons.CacheListenerException: java.util.concurrent.ExecutionException: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:804) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:937) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.cache.impl.CacheImpl.addListener(CacheImpl.java:722) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.query.continuous.impl.ContinuousQueryImpl.addContinuousQueryListener(ContinuousQueryImpl.java:43) ~[classes/:?]
> at org.infinispan.query.continuous.AbstractCQMultipleCachesTest.createContinuousQuery(AbstractCQMultipleCachesTest.java:53) ~[test-classes/:?]
> at org.infinispan.query.continuous.AbstractCQMultipleCachesTest.testContinuousQueryMultipleCaches(AbstractCQMultipleCachesTest.java:65) ~[test-classes/:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_45]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) ~[testng-6.8.8.jar:?]
> at org.testng.internal.MethodInvocationHelper$1.runTestMethod(MethodInvocationHelper.java:200) ~[testng-6.8.8.jar:?]
> at org.jboss.byteman.contrib.bmunit.BMNGAbstractRunner.run(BMNGAbstractRunner.java:58) ~[byteman-bmunit-2.1.4.jar:?]
> at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) ~[?:?]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_45]
> at org.testng.internal.MethodInvocationHelper.invokeHookable(MethodInvocationHelper.java:212) ~[testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:707) [testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) [testng-6.8.8.jar:?]
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) [testng-6.8.8.jar:?]
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) [testng-6.8.8.jar:?]
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) [testng-6.8.8.jar:?]
> at org.testng.TestRunner.privateRun(TestRunner.java:767) [testng-6.8.8.jar:?]
> at org.testng.TestRunner.run(TestRunner.java:617) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:38) [testng-6.8.8.jar:?]
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382) [testng-6.8.8.jar:?]
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64) [testng-6.8.8.jar:?]
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45]
> Caused by: java.util.concurrent.ExecutionException: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.commons.util.concurrent.NoOpFuture.get(NoOpFuture.java:44) ~[infinispan-commons-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:800) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> ... 31 more
> Caused by: org.infinispan.remoting.transport.jgroups.SuspectException: Target node ContinuousQueryMultipleCachesDistTest-NodeD-46591 is not a cluster member, members are [ContinuousQueryMultipleCachesDistTest-NodeA-24926, ContinuousQueryMultipleCachesDistTest-NodeC-45731]
> at org.infinispan.distexec.DefaultExecutorService.submit(DefaultExecutorService.java:419) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.distexec.DefaultExecutorService.submit(DefaultExecutorService.java:408) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.distexec.DistributedExecutionCompletionService.submit(DistributedExecutionCompletionService.java:178) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> at org.infinispan.notifications.cachelistener.CacheNotifierImpl.addListener(CacheNotifierImpl.java:794) ~[infinispan-core-8.2.0-SNAPSHOT.jar:8.2.0-SNAPSHOT]
> ... 31 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months
[JBoss JIRA] (ISPN-5943) Access log and statistics of cache operations
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5943?page=com.atlassian.jira.plugin.... ]
William Burns reassigned ISPN-5943:
-----------------------------------
Assignee: William Burns (was: Tristan Tarrant)
> Access log and statistics of cache operations
> ---------------------------------------------
>
> Key: ISPN-5943
> URL: https://issues.jboss.org/browse/ISPN-5943
> Project: Infinispan
> Issue Type: Feature Request
> Components: JMX, reporting and management
> Reporter: Pedro Zapata
> Assignee: William Burns
> Labels: jdg7
>
> The HotRod and REST endpoint will have a dedicated log category, which will be disabled by default, to which we will log using a format which follows the typical HTTPD server access.log format, i.e. client_ip user_id timestamp op key response_size processing_time.
> Enabling the log will be possible either by configuring the XML or by using the CLI.
> Additional JMX and DMR metrics will be implemented which report the number of invocations for each operation, their cumulative execution time, and the average execution time.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 10 months