[ 
https://issues.apache.org/jira/browse/TINKERPOP3-775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebastian Estevez updated TINKERPOP3-775:
-----------------------------------------
    Description: 
This does not work:

{code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name', 'Seb')"{code}

But this does

{code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name','Seb')"{code}

Correction. There is actually no bug, this is a URL encoding issue. The gremlin 
query above, with the spaces will work fine as long as curl is told to use URL 
encoding:

{code}$ curl -G --data-urlencode "gremlin=graph.addVertex('name', 'marko')" 
http://localhost:8182{code}

Closing as not an issue.

  was:
This does not work:

{code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name', 'Seb')"{code}

But this does

{code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name','Seb')"{code}


> Gremlin Server- Does not handle spaces in GET requests
> ------------------------------------------------------
>
>                 Key: TINKERPOP3-775
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-775
>             Project: TinkerPop 3
>          Issue Type: Bug
>            Reporter: Sebastian Estevez
>
> This does not work:
> {code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name', 'Seb')"{code}
> But this does
> {code}curl "http://192.168.59.103:8182?gremlin=g.addV('Name','Seb')"{code}
> Correction. There is actually no bug, this is a URL encoding issue. The 
> gremlin query above, with the spaces will work fine as long as curl is told 
> to use URL encoding:
> {code}$ curl -G --data-urlencode "gremlin=graph.addVertex('name', 'marko')" 
> http://localhost:8182{code}
> Closing as not an issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to