Guillaume, update - https://github.com/neo4j/gremlin-plugin/blob/master/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginFunctionalTest.java#L205 shows you that you need to escape the newline if you are executing your test from Java, since one String parsing in your client code is done before hitting the wire.
Is that the case? /peter On Mon, Aug 22, 2011 at 12:04 PM, Peter Neubauer <[email protected]> wrote: > Guillaume, > I added a test to the Gremlin test, which works, see > https://github.com/neo4j/gremlin-plugin/blob/master/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginTest.java#L238 > > However, I suspect the REST system to treat linebreaks wrongly, so I > need to track that down. > https://github.com/neo4j/gremlin-plugin/blob/master/src/test/java/org/neo4j/server/plugin/gremlin/GremlinPluginFunctionalTest.java#L205 > is failing, so I have a test for it :) > > /peter > > On Mon, Aug 22, 2011 at 11:35 AM, Guillaume ALLEE > <[email protected]> wrote: >> Hi all, >> >> Hi event with "\n", I am not able to send this script >> {"script":"g.v(1);g.v(2)"} in 2 lines. BTW I am still using 1.4. >> >> Stack trace is here http://pastebin.com/WYVJPy3K >> http://pastebin.com/WYVJPy3K >> >> It says "Unrecognized character escape (CTRL-CHAR, code 10)" >> >> -- >> View this message in context: >> http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-server-Gremlin-plugin-line-break-in-script-tp3191845p3274688.html >> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. >> _______________________________________________ >> Neo4j mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> > Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

