deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Assigned) (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (DTACLOUD-171) GET api/buckets/:bucket_id/blob_id - format=json returns user meta_data, format=xml does not
Date Tue, 27 Mar 2012 21:42:25 GMT

     [ https://issues.apache.org/jira/browse/DTACLOUD-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ronelle Landy reassigned DTACLOUD-171:
--------------------------------------

    Assignee: Marios Andreou  (was: Ronelle Landy)

Assigning back to Marios to commit the patch to git master branch (please mark the JIRA as
'Resolved' then). Will reverify and close the JIRA once tests are run on the code in master
branch.
                
> GET api/buckets/:bucket_id/blob_id -  format=json returns user meta_data, format=xml
does not
> ---------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-171
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-171
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: Deltacloud git commit: 7e372dfca79c02a799046287e5936129216b781b
n - branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud
> ec2 driver
> Fedora 16, RHEL 6.2
>            Reporter: Ronelle Landy
>            Assignee: Marios Andreou
>         Attachments: 0001-Fix-for-DTACLOUD-171-display-blob-metadata-for-xml-f.patch
>
>
>  - Create a bucket using the Deltacloud API, ec2 provider
>  - Add a blob to that bucket  - with user meta_data
>  - Execute >>  GET api/buckets/:bucket_id/blob_id 
>  - Note that; using GET with format=json returns user meta_data. Using GET with format=xml
does not:
> curl -X GET --user "username:password" "http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob3?format=json"
> \{"blob":{"href":"http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob3","last_modified":"Thu
 Mar 22 20:02:17 UTC  2012","bucket":"bucket-rlandy2","content_type":"application/octet-stream","user_metadata":{"author":"rlandy","version":"2.2"},"id":"03222012blob3","content_length":"15637"}}
> [rlandy@localhost server]$ curl -X GET --user "username:password" "http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob3?format=xml"
> <?xml version='1.0' encoding='utf-8' ?>
> <blob href='http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob3' id='03222012blob3'>
>   <bucket>bucket-rlandy2</bucket>
>   <content_length>15637</content_length>
>   <content_type>application/octet-stream</content_type>
>   <last_modified>Thu Mar 22 20:02:17 UTC 2012</last_modified>
>   <user_metadata>
>   </user_metadata>
>   <content href='http://localhost:3009/api/buckets/bucket-rlandy2/03222012blob3/content'></content>
> </blob>
> Note from marios: introduced by a recent commit of mfojtik's. He came across some issue
with client spec tests but I cannot reproduce it.
> (/server/views/blobs/show.xml.haml)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message