Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission type for PNCounter is missing #13399

Closed
alparslanavci opened this issue Jul 3, 2018 · 0 comments
Closed

Permission type for PNCounter is missing #13399

alparslanavci opened this issue Jul 3, 2018 · 0 comments

Comments

@alparslanavci
Copy link
Contributor

@alparslanavci alparslanavci commented Jul 3, 2018

The permission type for PNCounter service in ActionConstants is not defined. Because of that when a client tries to perform an action when permissions are configured, it gets the following exception:

Exception in thread "main" java.lang.IllegalArgumentException: No permissions found for service: hz:impl:PNCounterService
	at com.hazelcast.security.permission.ActionConstants.getPermission(ActionConstants.java:221)
	at com.hazelcast.client.impl.protocol.task.CreateProxyMessageTask.getRequiredPermission(CreateProxyMessageTask.java:72)
	at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.checkPermissions(AbstractMessageTask.java:178)
	at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage(AbstractMessageTask.java:122)
	at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.doRun(AbstractMessageTask.java:111)
	at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run(AbstractMessageTask.java:101)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64)
	at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80)
	at ------ submitted from ------.(Unknown Source)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:96)
	at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:33)
	at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:162)
	at com.hazelcast.client.spi.ProxyManager.initialize(ProxyManager.java:436)
	at com.hazelcast.client.spi.ProxyManager.initializeWithRetry(ProxyManager.java:395)
	at com.hazelcast.client.spi.ProxyManager.getOrCreateProxy(ProxyManager.java:316)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getDistributedObject(HazelcastClientInstanceImpl.java:707)
	at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getPNCounter(HazelcastClientInstanceImpl.java:617)
	at com.hazelcast.client.impl.HazelcastClientProxy.getPNCounter(HazelcastClientProxy.java:227)
	at PNCounterPermissionSampleClient.main(PNCounterPermissionSampleClient.java:13)

@mmedenjak mmedenjak added the Team: Core label Jul 3, 2018
@mmedenjak mmedenjak added this to the 3.10.3 milestone Jul 3, 2018
mmedenjak added a commit to mmedenjak/hazelcast that referenced this issue Jul 6, 2018
mmedenjak added a commit to mmedenjak/hazelcast that referenced this issue Jul 6, 2018
mmedenjak added a commit that referenced this issue Jul 6, 2018
Fixes: #13399

(cherry picked from commit 3a0061f)
mmedenjak added a commit to mmedenjak/hazelcast that referenced this issue Jul 6, 2018
mmedenjak added a commit that referenced this issue Jul 6, 2018
Fixes: #13399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.