|
@@ -152,7 +152,7 @@ public class S3AInputStream extends FSInputStream implements CanSetReadahead {
|
|
|
streamStatistics.streamOpened();
|
|
|
try {
|
|
|
GetObjectRequest request = new GetObjectRequest(bucket, key)
|
|
|
- .withRange(targetPos, contentRangeFinish);
|
|
|
+ .withRange(targetPos, contentRangeFinish - 1);
|
|
|
if (S3AEncryptionMethods.SSE_C.equals(serverSideEncryptionAlgorithm) &&
|
|
|
StringUtils.isNotBlank(serverSideEncryptionKey)){
|
|
|
request.setSSECustomerKey(new SSECustomerKey(serverSideEncryptionKey));
|