I am trying to implement the error handler of the response error body, but here is a bug existed:
I use get_metadata and give an invalid id as path, I got 500 in response but not 409 path not found.
If I use path based API, the response status is 409 as listed in document.
Furthermore, I try to use an invalid id just one char differed from correct one, I could got the other id's metadata.
POST data: {'path': u'id:FAIC-329TaAAAAAAAAOsXu'}
<Response [200]>: {".tag": "file", "name": "1m.1221.up", "path_lower": "/1m.1221.up", "id": "id:FAIC-329TaAAAAAAAAOsXg", "client_modified": "2015-12-21T09:10:21Z", "server_modified": "2015-12-21T09:10:21Z", "rev": "7c5503334341f", "size": 1048576}
I think there are two issues:
1) id as parameter will not response correctly if id is invalide
2) use id to get metadata will get other item's metadata
Please help to check these. Thanks.