You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Rod Simpson (JIRA)" <ji...@apache.org> on 2014/05/16 13:07:08 UTC
[jira] [Created] (USERGRID-144) Assets: File meta not refreshed
after PUT
Rod Simpson created USERGRID-144:
------------------------------------
Summary: Assets: File meta not refreshed after PUT
Key: USERGRID-144
URL: https://issues.apache.org/jira/browse/USERGRID-144
Project: Usergrid
Issue Type: Story
Components: Stack
Reporter: Rod Simpson
In the new implementation of assets, PUT operations update the asset data but do not update the file metadata.
This means that if the content-type of the asset changes, GET operations fail if I specify the expected content-type in the Accept header.
For example, if I attach an asset with content-type: image/jpeg, I can PUT a new jpeg and retrieve the new image with the Accept: image/jpeg header.
But...
If I PUT a text file, the file metadata remains content-type: image/jpeg, so a GET with Accept: text/plain fails.
But...
A GET with Accept: image/jpeg succeeds and I get back the data for my text file.
--
This message was sent by Atlassian JIRA
(v6.2#6252)