[openstack-dev] [Openstack] [Swift] Public Container's file listing

Sujay M sujay.m17 at gmail.com
Mon Nov 19 06:04:54 UTC 2012


Thanks a lot Alex,

It worked for me :-)

Also i have a small doubt. Is there a similar way (or any way) to list all
containers in a account? Also How can i create pseudo paths?


On 19 November 2012 11:11, Alex Yang <alex890714 at gmail.com> wrote:

>
> http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.staticweb
>
>
> 2012/11/19 Hua ZZ Zhang <zhuadl at cn.ibm.com>
>
>>  "You can implement access control for objects either for users or
>> accounts using XContainer-
>> Read: accountname and X-Container-Write: accountname:username, which
>> allows any user from the accountname account to read but only allows the
>> username
>> user from the accountname account to write."
>>
>> "You can also grant public access to objects stored in OpenStack Object
>> Storage but also limit
>> public access using the Referer header to prevent site-based content
>> theft such as hot-linking
>> (for example, linking to an image filefrom off-site and therefore using
>> other's bandwidth).
>> The public container settings are used as the default authorization over
>> access control lists.
>> For example, using X-Container-Read:referer:any allows anyone to read
>> from the container regardless
>>  of other authorization settings."
>>
>> *Best Regards, *
>>
>> ------------------------------
>>
>>    *Edward Zhang(张华)*
>>
>>
>>
>>
>>
>>
>>
>> [image: Inactive hide details for Sujay M ---2012-11-19 11:59:55---Hi
>> all,]Sujay M ---2012-11-19 11:59:55---Hi all,
>>
>>
>>    *Sujay M <sujay.m17 at gmail.com>*
>>    Sent by: openstack-bounces+zhuadl=cn.ibm.com at lists.launchpad.net
>>
>>    2012-11-19 11:59
>>
>>
>> To
>>
>>
>>    openstack-operators at lists.openstack.org, openstack at lists.launchpad.net,
>>    openstack-dev at lists.openstack.org
>>
>>
>> cc
>>
>>
>> Subject
>>
>>
>>    [Openstack] [Swift] Public Container's file listing
>>
>>
>> Hi all,
>>
>> Currently it is showing Unauthorized if i give only public container name
>> for listing of files in the public Container
>>
>> *192.168.56.20:8080/v1/AUTH_test/publicContainer/*<http://192.168.56.20:8080/v1/AUTH_test/publicContainer/>
>>
>> *192.168.56.20:8080/v1/AUTH_test/publicContainer*<http://192.168.56.20:8080/v1/AUTH_test/publicContainer>
>>
>> Unauthorized
>>
>> Is there any way i can list the files publicly? Thanks in advance
>>
>>
>>
>> --
>> Best Regards,
>>
>> Sujay M
>> Final year B.Tech
>> Computer Engineering
>> NITK Surathkal
>>
>> contact: +918971897571
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
>   杨雨
>   Email:       alex890714 at gmail.com
> GitHub:       https://github.com/AlexYangYu
>     Blog:        http://alexyang.sinaapp.com
>  Weibo:       http://www.weibo.com/alexyangyu
>
>


-- 
Best Regards,

Sujay M
Final year B.Tech
Computer Engineering
NITK Surathkal

contact: +918971897571
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20121119/bf86e7a8/attachment.html>


More information about the OpenStack-dev mailing list