You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/08/24 21:44:36 UTC

[2/2] tinkerpop git commit: fixed authentification code in driver_remoteconnection

fixed authentification code in driver_remoteconnection


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/21865d81
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/21865d81
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/21865d81

Branch: refs/heads/TINKERPOP-1278
Commit: 21865d81948ea39fcd20fc3fb17cf2d9190aa625
Parents: cb9d46a
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Wed Aug 24 15:44:32 2016 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Wed Aug 24 15:44:32 2016 -0600

----------------------------------------------------------------------
 .../jython/gremlin_python/driver/driver_remote_connection.py    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/21865d81/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py b/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py
index 3651ec8..50a9944 100644
--- a/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py
+++ b/gremlin-python/src/main/jython/gremlin_python/driver/driver_remote_connection.py
@@ -172,7 +172,10 @@ class Response:
         auth = b"".join([b"\x00", username.encode("utf-8"),
                          b"\x00", password.encode("utf-8")])
         message = {
-            "requestId": str(uuid.uuid4()),
+            "requestId": {
+                "@type": "g:UUID",
+                "@value": str(uuid.uuid4())
+            },
             "op": "authentication",
             "processor": "traversal",
             "args": {