[ https://issues.apache.org/jira/browse/TINKERPOP-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Mallette reassigned TINKERPOP-3135: ------------------------------------------- Flags: (was: Patch) Affects Version/s: (was: 3.4.11) Assignee: Stephen Mallette Thanks for the fix - couldn't directly apply the patch for some reason but it was a one line change so easy enough: https://github.com/apache/tinkerpop/commit/86f784bb631caeab28fa5b242691f45650f0f1fa > 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 > Reporter: Paula Gearon > Assignee: Stephen Mallette > Priority: Trivial > 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)