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

ASF subversion and git services commented on GEODE-7279:
--------------------------------------------------------

Commit 7666e4195a7f3fcf58cc516b3150591cfdb3b7b9 in geode's branch 
refs/heads/develop from Donal Evans
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=7666e41 ]

GEODE-7279: Warning log for deprecated system value should be shown once (#4132)


Authored-by: Donal Evans <[email protected]>



> Warning message for deprecated allowUntrustedMethodInvocation should be only 
> logged once
> ----------------------------------------------------------------------------------------
>
>                 Key: GEODE-7279
>                 URL: https://issues.apache.org/jira/browse/GEODE-7279
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>            Reporter: Juan Ramos
>            Assignee: Donal Evans
>            Priority: Minor
>              Labels: GeodeCommons
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> The warning message is still shown every single time the user invokes 
> {{getQueryService()}}, and that's basically because the 
> {{deprecatedWarningHasBeenShown}} attribute within {{DefaultQueryService}} is 
> an instance variable instead of a static one.
> As an example, after running the following test:
> {code}
> public class DefaultQueryServiceIntegrationTest {
>   static {
>     System.setProperty(GEMFIRE_PREFIX + 
> "QueryService.allowUntrustedMethodInvocation", "true");
>   }
>   @Rule
>   public TestName testName = new TestName();
>   @Rule
>   public ServerStarterRule server = new ServerStarterRule().withAutoStart();
>   public void terst() throws Exception {
>     server.getCache().getQueryService();
>     server.getCache().getQueryService();
>   }
> }
> {code}
> The logs contain the warning message 3 times:
> {noformat}
> [warn 2019/10/08 17:25:39.378 IST <Test worker> tid=0xb] The property 
> gemfire.QueryService.allowUntrustedMethodInvocation is deprecated. To provide 
> the same functionality, please use the UnrestrictedMethodAuthorizer 
> implementation of MethodInvocationAuthorizer
> [warn 2019/10/08 17:25:39.382 IST <Test worker> tid=0xb] The property 
> gemfire.QueryService.allowUntrustedMethodInvocation is deprecated. To provide 
> the same functionality, please use the UnrestrictedMethodAuthorizer 
> implementation of MethodInvocationAuthorizer
> [warn 2019/10/08 17:25:39.382 IST <Test worker> tid=0xb] The property 
> gemfire.QueryService.allowUntrustedMethodInvocation is deprecated. To provide 
> the same functionality, please use the UnrestrictedMethodAuthorizer 
> implementation of MethodInvocationAuthorizer
> {noformat}



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

Reply via email to