cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Comsumer API get_metadata with invalid id not return 409 but 500 error

Comsumer API get_metadata with invalid id not return 409 but 500 error

m. chiuq
New member | Level 1

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.

5 Replies 5

Greg-DB
Dropbox Staff

Thanks for the report! We're looking into these issues.

m. chiuq
New member | Level 1

hi, is there any updated about this issue?

Greg-DB
Dropbox Staff

No update on the 500 error issue. I'll follow up here when this is resolved.

The other issue, with the slightly changed file ID, behaves this way because of how these IDs are encoded. That is, a small portion of the ID (at the end) is irrelevant, so changing it doesn't affect the operation.

Greg-DB
Dropbox Staff

The 500 for invalid IDs should be fixed now.

m. chiuq
New member | Level 1

It's great, I'll try to test it.

thanks!

Need more support?