I have no idea off hand especially if: > I went to add the tests to the integration suit for gremlin-server and > couldn't recreate this behavior using gremlin-driver (both tests I set up pass).
Interesting that you were able to create tests that passed for the driver. I think those are worth committing and keeping if you still have them. You can CTR those to master - i'll review after the fact if you send me a link to the commit. Does the PHP driver have this problem? can you write a test from that perspective? On Wed, Nov 4, 2015 at 2:28 PM, Dylan Millikin <dylan.milli...@gmail.com> wrote: > I just tried this with the php driver and I get the same result. Both on > 3.0.2-incubating and 3.1.0-SNAPSHOT. (I even tried authenticating against > the session processor "just in case") > > I went to add the tests to the integration suit for gremlin-server and > couldn't recreate this behavior using gremlin-driver (both tests I set up > pass). > > I'm not really sure why this is happening at this point. I will probably > have to write another set of tests using the simple client to figure out > what is going on. > > Any ideas Stephen? > > On Wed, Nov 4, 2015 at 6:08 PM, David Brown <davebs...@gmail.com> wrote: > > > I am having a bit of trouble getting my SessionClient tests running using > > Gremlin Server 3.0.2-incubating when I use the > > conf/gremlin-server-secure.yaml. Maybe I am missing something, so any > help > > would be appreciated. > > > > When using the regular conf/gremlin-server.yaml config, I send a series > of > > messages to make sure state is being maintained across messages as > follows: > > > > Message: > > > > > b'\x10application/json{"processor":"session","op":"eval","requestId":"eecf7155-46ee-4ad1-a792-d9babd85b72d","args":{"bindings":null,"gremlin":"v=graph.addVertex(\'name\', > > > > > \'Dave\')","rebindings":{},"language":"gremlin-groovy","session":"83440e37-15d1-4d94-9f2a-c38483b1e8f5"}}' > > > > Response: > > {'result': {'data': [{'label': 'vertex', 'type': 'vertex', 'id': 4, > > 'properties': {'name': [{'id': 5, 'value': 'Dave'}]}}], 'meta': {}}, > > 'status': {'code': 200, 'message': '', 'attributes': {}}, 'requestId': > > 'eecf7155-46ee-4ad1-a792-d9babd85b72d'} > > > > > > Message: > > > > > b'\x10application/json{"processor":"session","op":"eval","requestId":"e7bd76f4-2ce4-4129-b065-a5418627ac4c","args":{"bindings":null,"gremlin":"v.property(\'name\')","rebindings":{},"language":"gremlin-groovy","session":"83440e37-15d1-4d94-9f2a-c38483b1e8f5"}}' > > > > Response: > > {'result': {'data': [{'label': 'name', 'id': 5, 'value': 'Dave'}], > 'meta': > > {}}, 'status': {'code': 200, 'message': '', 'attributes': {}}, > 'requestId': > > 'e7bd76f4-2ce4-4129-b065-a5418627ac4c'} > > > > > > This is exactly the behaviour I expect. However, when I run the server > with > > the the secure conf, the user auth works fine, but then I receive an > error > > stating that the variable `v` is undeclared as follows: > > > > Message: > > > > > b'\x10application/json{"requestId":"1afa7873-df64-43a1-82a2-4aaa3cc35d82","processor":"session","args":{"bindings":null,"language":"gremlin-groovy","session":"e4deb7ef-c551-49bc-896d-089dba9cb5e6","gremlin":"v=graph.addVertex(\'name\', > > \'Dave\')","rebindings":{}},"op":"eval"}' > > > > Response: > > {'status': {'message': '', 'code': 407, 'attributes': {}}, 'requestId': > > '1afa7873-df64-43a1-82a2-4aaa3cc35d82', 'result': {'meta': {}, 'data': > > None}} > > > > Message: > > > > > b'\x10application/json{"requestId":"78e3e4e1-08d9-4222-a57a-3fd07180d974","processor":"","args":{"sasl":"AHN0ZXBoZW4AcGFzc3dvcmQ="},"op":"authentication"}' > > > > > > Response: > > {'status': {'message': "startup failed:\nScript2.groovy: 1: [Static type > > checking] - The variable [v] is undeclared.\n @ line 1, column 1.\n > > v=graph.addVertex('name', 'Dave')\n ^\n\n1 error\n", 'code': 597, > > 'attributes': {}}, 'requestId': '1afa7873-df64-43a1-82a2-4aaa3cc35d82', > > 'result': {'meta': {}, 'data': None}} > > > > Any insights into why this happens? Am I doing something wrong? > > > > TIA > > > > Dave > > > > > > > > > > -- > > David M. Brown > > R.A. CulturePlex Lab, Western University > > >