Open xrotwang opened 8 years ago
Could not reproduce it..
POST https://dev-faces.mpdl.mpg.de/rest/items BODY:
{"collectionId":"584Cq4n5sQZUVkFT", "fetchUrl":"https://raw.githubusercontent.com/clld/clld.github.io/master/images/sino-tibetan.jpg"}
Response
{
"id": "uF60xatDliVbguJJ",
"createdBy": {
"fullname": "imeji, admin",
"userId": "WuExL7x5lGcyZpU"
},
"modifiedBy": {
"fullname": "imeji, admin",
"userId": "WuExL7x5lGcyZpU"
},
"createdDate": "2015-07-20T09:57:34 +0200",
"modifiedDate": "2015-07-20T09:57:34 +0200",
"versionDate": "",
"status": "PENDING",
"version": 0,
"visibility": "PRIVATE",
"collectionId": "584Cq4n5sQZUVkFT",
"filename": "sino-tibetan.jpg",
"mimetype": "image/jpeg",
"checksumMd5": "8f077375cf3cdea65529733337d6ca67",
"webResolutionUrlUrl": "https://dev-faces.mpdl.mpg.de/file/584Cq4n5sQZUVkFT/7d/e2/53/e0-78bb-47f1-a55a-45f9dafda544/0/web/892f7d5476056c0764549db6e185413e.jpg",
"thumbnailUrl": "https://dev-faces.mpdl.mpg.de/file/584Cq4n5sQZUVkFT/7d/e2/53/e0-78bb-47f1-a55a-45f9dafda544/0/thumbnail/892f7d5476056c0764549db6e185413e.jpg",
"fileUrl": "https://dev-faces.mpdl.mpg.de/file/584Cq4n5sQZUVkFT/7d/e2/53/e0-78bb-47f1-a55a-45f9dafda544/0/original/892f7d5476056c0764549db6e185413e.jpg",
"metadata": [],
"fileSize": 345878
}
I try to create an item using the following JSON message:
which results in the following error response:
I think this is a bug, because the server sends the correct
content-type
header to be used for the item: