You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/11/09 18:56:11 UTC
[jira] [Updated] (USERGRID-144) Assets: File meta not refreshed
after PUT
[ https://issues.apache.org/jira/browse/USERGRID-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeffrey updated USERGRID-144:
------------------------------
Sprint: Double Check
> 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
> Priority: Minor
>
> 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.3.4#6332)