Skip to content

Add byte offset functionality to StorageIO and Access API #6937

@landreev

Description

@landreev

We want to be able to support the standard HTTP "bytes=" parameter. For example, call /api/access/datafile/<id>?bytes=8192-8208 and get just the 16 bytes at the 8K offset, instead of the entire file.

(it's "working" for some people in our own prod. Dataverse - see #5957 - but only because we redirect to S3, which does understand the parameter).

To implement it, we should add some form of "open at offset specified" functionality to the StorageIO structure. Then adding the handling of the extra parameter to the Access API should be trivial.

Should be straightforward overall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions