Paula Gearon created TINKERPOP-3135:
---------------------------------------

             Summary: Gremlin Console complains about missing plugins field
                 Key: TINKERPOP-3135
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3135
             Project: TinkerPop
          Issue Type: Bug
          Components: server
    Affects Versions: 3.7.3, 3.4.11
            Reporter: Paula Gearon
         Attachments: missing-plugins.patch

{code:java}
org.apache.tinkerpop.gremlin.server.Settings.read(InputStream){code}
logs the following warning:

 
{noformat}
WARNING: Failed to find field for 
org.apache.tinkerpop.gremlin.server.Settings.plugins
{noformat}
This is because the protected method `createDefaultYamlConstructor()` creates a 
snakeyaml `TypeDescription` for the `Settings` class and adds property 
parameters for "plugins" (the value for this key is a string). However, there 
is no public field called `plugins` on the `Settings` class, and so this 
warning is logged.

The `ScriptEngineSettings` inner class does have a "plugins" parameter, which 
is correctly configured (it's a map of String to Map). It appears that there 
are no current plans for plugins on the server, so I think that the appropriate 
fix is to remove it, at least until something needs it.

It's a minor issue, and essentially the same thing as TINKERPOP-3001

To reproduce:

 
{code:java}
import org.apache.tinkerpop.gremlin.server.Settings;
import java.io.*;
public class Demo {
  public static void main(String[] args) throws Exception {
    InputStream i = new ByteArrayInputStream("host: localhost\nport: 
8182\n").getBytes("UTF-8"));
    Settings.read(i);
  }
}
{code}
It's tricky to build a test for this since the only issue is a logged warning

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to