Ask Your Question
0

Unauthorized Error in browser for object uploaded as segmented way in swift

asked 2015-12-30 07:20:34 -0500

ebyenjoys gravatar image

updated 2015-12-31 03:17:26 -0500

Hello,

I am getting Unauthorized error for the objects uploaded in the segment way to swift. I have already enabled ACL for read request. I am using openstack version kilo, using tempauth for authentication.

swift -A http://xxxx.xxxx.xxxx.xxxx:8080/auth/v1.0 -U test:tester -K testing stat amru_72_push_259
     Account: PLAY_test
   Container: amru_72_push_259
     Objects: 34
       Bytes: 508017317
    Read ACL: .r:*
   Write ACL:
     Sync To:
    Sync Key:
   Accept-Ranges: bytes
  X-Trans-Id: tx58c677ccabd641d19e597-005683d5d3tx1234567890123456gra1
  X-Storage-Policy: Policy-0
  X-Timestamp: 1451274582.11965
 Content-Type: text/plain; charset=utf-8



 swift -A http://xxx.xxx.xxx.xxx:8080/auth/v1.0 -U test:tester -K testing list amru_72_push_259
 251d164643533a52.html
 a.mp4
 mp4/asianetlive_rec-2015-11-25-20.00.00.123-IST.mp4
 mp4/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aaa
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aab
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aac
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aad
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aae
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aaf
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aag
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aah
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aai
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aaj
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aak
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aal
segments/9a879257cafc41c682739a0e150a92d2/asianetlive_rec-2015-11-25-20.30.00.285-IST.mp4-aam

I am still not able to download this file through browser image description

I am able to download the uploaded file with the help of curl API, but seems like the object is reproduced on the fly from swift.

image description

Is it possible to download the file directly on browser or is there way to concatenate the segments within the swift to download it directly. Kindly help me to fix this.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-03 12:01:58 -0500

ebyenjoys gravatar image

Hello,

Issue got resolved by adding the special permission post -r .r:*,.rlistings

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-12-30 07:20:34 -0500

Seen: 76 times

Last updated: Jan 03 '16