Florian Hockmann created TINKERPOP-1955:
-------------------------------------------

             Summary: Gremlin.Net uses hard-coded g alias to retrieve side 
effects
                 Key: TINKERPOP-1955
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1955
             Project: TinkerPop
          Issue Type: Bug
          Components: dotnet
    Affects Versions: 3.3.2, 3.2.8
            Reporter: Florian Hockmann


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}}.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to