Tristan Tarrant created ISPN-7235:
-------------------------------------
Summary: Cross site replication fails if authentication is enabled
Key: ISPN-7235
URL:
https://issues.jboss.org/browse/ISPN-7235
Project: Infinispan
Issue Type: Bug
Components: Cross-Site Replication, Security
Affects Versions: 8.2.5.Final, 9.0.0.Alpha4
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 9.0.0.Beta1, 8.2.6.Final
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher]
(Incoming-2,shared=tcp-global) ISPN000071: Caught exception when handling command
SingleXSiteRpcCommand{command=ClearCommand{flags=null}}: java.lang.SecurityException:
ISPN000287: Unauthorized access: subject 'null' lacks 'ADMIN' permission
at
org.infinispan.security.impl.AuthorizationHelper.checkPermission(AuthorizationHelper.java:76)
at
org.infinispan.security.impl.AuthorizationManagerImpl.checkPermission(AuthorizationManagerImpl.java:44)
at
org.infinispan.security.impl.SecureCacheImpl.getCacheConfiguration(SecureCacheImpl.java:454)
at
org.infinispan.xsite.BackupReceiverRepositoryImpl.createBackupReceiver(BackupReceiverRepositoryImpl.java:163)
at
org.infinispan.xsite.BackupReceiverRepositoryImpl.getBackupReceiver(BackupReceiverRepositoryImpl.java:95)
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.executeCommandFromRemoteSite(CommandAwareRpcDispatcher.java:283)
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:252)
at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:460)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:377)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:250)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:675)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.JChannel.up(JChannel.java:739)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1029)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.relay.RELAY2.deliver(RELAY2.java:618)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.relay.RELAY2.route(RELAY2.java:514)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.relay.RELAY2.handleMessage(RELAY2.java:489)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.relay.RELAY2.handleRelayMessage(RELAY2.java:470)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.relay.Relayer$Bridge.receive(Relayer.java:265)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.JChannel.up(JChannel.java:769)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1033)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.FRAG2.up(FRAG2.java:182)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.FlowControl.up(FlowControl.java:447)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.stack.Protocol.up(Protocol.java:420)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:294)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.UNICAST3.deliverBatch(UNICAST3.java:1087)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.UNICAST3.removeAndDeliver(UNICAST3.java:886)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:790)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:652)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:155)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:200)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:299)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.MERGE3.up(MERGE3.java:286)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.Discovery.up(Discovery.java:291)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.TP$ProtocolAdapter.up(TP.java:2842)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.TP.passMessageUp(TP.java:1577)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at org.jgroups.protocols.TP$MyHandler.run(TP.java:1796)
[jgroups-3.6.3.Final-redhat-6.jar:3.6.3.Final-redhat-6]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_101]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_101]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_101]
~~~
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)