Skip to content

PutObjectRequest does not callback invocationCallback object #58

@pcramasamy

Description

@pcramasamy
    PutObjectRequest headRequest = PutObjectRequest.builder().namespaceName("testnamespace").bucketName("testbucket")
    		.objectName("file_object")
    		.putObjectBody(new FileInputStream("testfile"))
    		.invocationCallback(new DateHeaderConsumer()) 
    		.build();
    osclient.putObject(headRequest);

The DateHeaderConsumer.accept is never called. GetObjectRequest, HeadObjectRequest, etc does callback as expected, only the PutObjectRequest does not callback. This looks like a bug to me.
ObjectMetadataInterceptor.intercept(PutRequestObject) creates a new PutRequestObject without the invocation callback. The preprocess method doesn't find any invocationCallback object in case of PutRequestObject.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions