[ 
https://issues.apache.org/jira/browse/USERGRID-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15096814#comment-15096814
 ] 

ASF GitHub Bot commented on USERGRID-144:
-----------------------------------------

Github user GERey commented on the pull request:

    https://github.com/apache/usergrid/pull/465#issuecomment-171399735
  
    https://issues.apache.org/jira/browse/USERGRID-144


> 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
>            Assignee: George Reyes
>            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)

Reply via email to