Ask Your Question
0

HTTP multi-range request support

asked 2012-01-10 22:06:32 -0600

kstyrc gravatar image

I hope here is the right place to ask such question.

Is there any ongoing work to add the full support for HTTP range header including multi-range requests in SWIFT? If not, is there any project assumption to reject this full support?

I'm currently developing a service for validation of a file upon its partial content. So it is required to be able to request: GET /<api version="">/<account>/<container>/ HTTP/1.1 Host: http://storage.swiftdrive.com X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb Range: bytes=0-50, 100-150, and so on for example

Unfortunately, according to the docs: http://docs.openstack.org/bexar/openstack-object-storage/developer/content/ch03s03.html#d5e596 (http://docs.openstack.org/bexar/opens...) this Range form is not supported. Running such request against swift endpoint results in HTTP/1.1 416 Requested Range Not Satisfiable

Also checked the blueprints: https://blueprints.launchpad.net/swift https://blueprints.launchpad.net/openstack-common (https://blueprints.launchpad.net/open...) https://blueprints.launchpad.net/openstack (https://blueprints.launchpad.net/open...) but was unable to find any related feature.

So, is there any ongoing work to add the full http range support? Could it be proposed as blueprint in SWIFT project?

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-09 17:17:10 -0600

Guys, I am currently working on the implementation. This is based on the implementation of replacing webob in swift. You can find the implementation here, https://review.openstack.org/#/c/14180/ . Hopefully, the changes will get emerged into swift soon.

edit flag offensive delete link more
0

answered 2012-07-26 11:10:26 -0600

what's the status of this? that issue is closed with a reference to https://groups.google.com/forum/#!topic/paste-users/FOsN7y3xt6M (https://groups.google.com/forum/#!top...) but it's not clear what the current situation is.

edit flag offensive delete link more
0

answered 2012-01-11 14:01:38 -0600

kstyrc gravatar image

I've opened an issue for full http range support in webob framework: https://github.com/Pylons/webob/issues/23 (https://github.com/Pylons/webob/issue...)

edit flag offensive delete link more
0

answered 2012-01-11 04:26:12 -0600

notmyname gravatar image

Honestly, that would be up to the webob project owners to decide.

I've always found them receptive to code patches. They have accepted several patches from the core swift devs as we found issues that affected us while writing swift. I'm sure they would be happy to have multi-range request support in their framework.

--John

On Jan 10, 2012, at 7:45 PM, kstyrc wrote:

Question #184299 on OpenStack Object Storage (swift) changed: https://answers.launchpad.net/swift/+...

Status: Answered => Open

kstyrc is still having a problem: I'm rather not familiar with python world.

Is multiple ranges support likely to be accepted and implemented in the webob framework?


You received this question notification because you are a member of Swift Core, which is an answer contact for OpenStack Object Storage (swift).

edit flag offensive delete link more
0

answered 2012-01-11 01:44:11 -0600

kstyrc gravatar image

I'm rather not familiar with python world.

Is multiple ranges support likely to be accepted and implemented in the webob framework?

edit flag offensive delete link more
0

answered 2012-01-10 23:17:51 -0600

notmyname gravatar image

You are correct in that swift does not support multiple ranges.

This is a limitation of webob (the underlying wsgi request/response handler) that swift uses. If swift were to support multi-range requests, it would need to be implemented in the webob framework ( http://www.webob.org/ )

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: 2012-01-10 22:06:32 -0600

Seen: 153 times

Last updated: Oct 09 '12