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

Madhan Neethiraj resolved ATLAS-400.
------------------------------------
    Resolution: Invalid

[~ayubkhan] Here is the sample curl call to update a property of an entity:

{code}
curl -v -u user:passwd -H "Content-Type: application/json" -H "Accept: 
application/json" -X POST 
'http://localhost.localdomain:21000/api/atlas/entities/f14b5af7-96a4-4f1d-aaa4-2b2949047107?property=comment'
 -d 'testValue'
{code}


>  Entity update using PUT method is broken
> -----------------------------------------
>
>                 Key: ATLAS-400
>                 URL: https://issues.apache.org/jira/browse/ATLAS-400
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Ayub Khan
>            Priority: Critical
>              Labels: regression
>             Fix For: trunk
>
>
>  Entity update using PUT method is broken
> {noformat}
> [root@os-r6-atlas-erie-tp-testing-2 atlas]# curl -v -X PUT 
> 'http://os-r6-atlas-erie-tp-testing-2.novalocal:21000/api/atlas/entities/2a89f7d5-b3e0-41d2-bfa0-57691dd27bef?user.name=apathan&property=long&value=9223372036854775807'
> * About to connect() to os-r6-atlas-erie-tp-testing-2.novalocal port 21000 
> (#0)
> *   Trying 172.22.100.121... connected
> * Connected to os-r6-atlas-erie-tp-testing-2.novalocal (172.22.100.121) port 
> 21000 (#0)
> > PUT 
> > /api/atlas/entities/2a89f7d5-b3e0-41d2-bfa0-57691dd27bef?user.name=apathan&property=long&value=9223372036854775807
> >  HTTP/1.1
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 
> > Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: os-r6-atlas-erie-tp-testing-2.novalocal:21000
> > Accept: */*
> >
> < HTTP/1.1 405 Method Not Allowed
> < Date: Thu, 17 Dec 2015 18:27:05 GMT
> < Allow: HEAD,POST,GET,OPTIONS
> < requestId: 9bfce9bd-2cb1-4a60-9f9b-ae2042ad2e28
> < Content-Length: 0
> < Server: Jetty(9.2.12.v20150709)
> <
> * Connection #0 to host os-r6-atlas-erie-tp-testing-2.novalocal left intact
> * Closing connection #0
> [root@os-r6-atlas-erie-tp-testing-2 atlas]#
> {noformat}



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

Reply via email to