Skip to content

possible bug in get_object() missing buffer_size argument in call to GetObjectResponse #69

@slobinger

Description

@slobinger

There is a possible bug in in the last release v5.8.2 in the get_object function.
The call to GetObjectResponse is missing the buffer_size argument.

def get_object(self, request, buffer_size=1048576):
        if not isinstance(request, GetObjectRequest):
            raise TypeError('request for get_object should be of type GetObjectRequest but was ' + request.__class__.__name__)
        with self.net_client.open_response(request) as resp:
            return GetObjectResponse(resp, request)

The last line should be

            return GetObjectResponse(resp, request, buffer_size)

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