geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donal Evans (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (GEODE-7279) Warning message for deprecated allowUntrustedMethodInvocation should be only logged once
Date Tue, 08 Oct 2019 17:25:00 GMT

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

Donal Evans reassigned GEODE-7279:
----------------------------------

    Assignee: Donal Evans

> 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
>
> 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)

Mime
View raw message