quantranhong1999 commented on code in PR #2960:
URL: https://github.com/apache/james-project/pull/2960#discussion_r3050115770
##########
server/blob/blob-aes/src/main/java/org/apache/james/blob/aes/AESBlobStoreDAO.java:
##########
@@ -102,9 +102,11 @@ public InputStream read(BucketName bucketName, BlobId
blobId) throws ObjectStore
}
@Override
- public Publisher<InputStream> readReactive(BucketName bucketName, BlobId
blobId) {
- return Mono.from(underlying.readReactive(bucketName, blobId))
- .map(Throwing.function(this::decrypt));
+ public Publisher<InputStreamBlob> readBlobReactive(BucketName bucketName,
BlobId blobId) {
+ return Mono.from(underlying.readBlobReactive(bucketName, blobId))
+ .map(InputStreamBlob::payload)
+ .map(Throwing.function(this::decrypt))
+ .map(InputStreamBlob::of);
Review Comment:
AESBlobStoreDAO should respect metadata from the underlying blobstoredao
now, see
https://github.com/apache/james-project/pull/2960/changes/40e6383ba31a66606caba7d0b375a74ea4ab6ca0#diff-00b64d51d531f421f48ea475526730cde70476d0d192bca63088a713f86721fa
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]