Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1955

Gremlin.Net uses hard-coded g alias to retrieve side effects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.2.8, 3.3.2
    • None
    • dotnet
    • None

    Description

      Clients have to specify the name of the TraversalSource of which the traversal should be started with the aliases argument. Gremlin.Net allows defining this alias as an argument to the DriverRemoteConnection constructor which is then used to submit Bytecode traversals.

      However, this value is not available when side effects are retrieved and the alias is hard-coded to g for this purpose: https://github.com/apache/tinkerpop/blob/master/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs#L102

      So users currently can only retrieve side effects with Gremlin.Net for traversal sources that are globally bound to g.

      One option to fix this could be by moving the alias from the DriverRemoteConnection class into the IGremlinClient interface as a public property as that interface is available in the DriverRemoteConnection class as well as in the class DriverRemoteTraversalSideEffects.

       

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              Florian Hockmann Florian Hockmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: