You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/14 21:54:00 UTC

[jira] [Commented] (GEODE-2296) GetFunctionAttribute command is throwing an Anonymouse User Exception

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

ASF GitHub Bot commented on GEODE-2296:
---------------------------------------

jinmeiliao opened a new pull request #1169: GEODE-2296: Internal message SIZE should not have authorization checks
URL: https://github.com/apache/geode/pull/1169
 
 
   Thank you for submitting a contribution to Apache Geode.
   
   In order to streamline the review of the contribution we ask you
   to ensure the following steps have been taken:
   
   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
   
   - [ ] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   - [ ] Does `gradlew build` run cleanly?
   
   - [ ] Have you written or updated unit tests to verify your changes?
   
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   
   ### Note:
   Please ensure that once the PR is submitted, you check travis-ci for build issues and
   submit an update to your PR as soon as possible. If you need help, please send an
   email to dev@geode.apache.org.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> GetFunctionAttribute command is throwing an Anonymouse User Exception
> ---------------------------------------------------------------------
>
>                 Key: GEODE-2296
>                 URL: https://issues.apache.org/jira/browse/GEODE-2296
>             Project: Geode
>          Issue Type: Bug
>          Components: docs, management, security
>            Reporter: Jinmei Liao
>             Fix For: 1.1.0
>
>
> When trying to execute a function from a client, we sometimes would get this exception. This is because GetFunctionAttribute is regarded as an internal message, so it's not getting the subject bound to the executing thread, but the cmdExecute method of this command is checking for authorization. Need to remove that check and update the docs to not include this client command.
> [error 2017/01/12 15:25:20.968567 Pacific Standard Time mmartell-Win10:3084 7460] Region::GET_FUNCTION_ATTRIBUTES: An exception (org.apache.geode.security.GemFireSecurityException: Error: Anonymous User
>        at org.apache.geode.internal.security.IntegratedSecurityService.getSubject(IntegratedSecurityService.java:114)
>        at org.apache.geode.internal.security.IntegratedSecurityService.authorize(IntegratedSecurityService.java:273)
>        at org.apache.geode.internal.security.IntegratedSecurityService.authorize(IntegratedSecurityService.java:269)
>        at org.apache.geode.internal.security.IntegratedSecurityService.authorize(IntegratedSecurityService.java:264)
>        at org.apache.geode.internal.security.IntegratedSecurityService.authorize(IntegratedSecurityService.java:260)
>        at org.apache.geode.internal.security.IntegratedSecurityService.authorizeClusterRead(IntegratedSecurityService.java:220)
>        at org.apache.geode.internal.cache.tier.sockets.command.GetFunctionAttribute.cmdExecute(GetFunctionAttribute.java:60)
>        at org.apache.geode.internal.cache.tier.sockets.BaseCommand.execute(BaseCommand.java:141)
>        at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doNormalMsg(ServerConnection.java:776)
>        at org.apache.geode.internal.cache.tier.sockets.ServerConnection.doOneMessage(ServerConnection.java:904)
>        at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1160)
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>        at org.apache.geode.internal.cache.tier.sockets.AcceptorImpl$1$1.run(AcceptorImpl.java:519)
>        at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)