[ 
https://issues.apache.org/jira/browse/GEODE-7279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Hanson closed GEODE-7279.
------------------------------

Transition from Resolved to Closed for Apache Geode 1.11.0 RC4 release.

> 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
>             Fix For: 1.11.0
>
>          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