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.