[
https://issues.apache.org/jira/browse/NIFI-9055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17400572#comment-17400572
]
Joey Frazee commented on NIFI-9055:
-----------------------------------
S3 makes use of a range header following RFC 2616 [1] for doing a range
request. AFAICT, specifying a range for a 0 byte file is invalid -- it does not
"include[s] at least one byte-range-spec whose first-byte-pos is less than the
current length of the entity-body" since 0 is not less than 0.
So, a range shouldn't be specified at all and we need a third branch in the
code where we just skip the setRange() when the intent is 0-.
1. https://datatracker.ietf.org/doc/html/rfc2616#section-14.35.1
> FetchS3Object fails to fetch small files
> ----------------------------------------
>
> Key: NIFI-9055
> URL: https://issues.apache.org/jira/browse/NIFI-9055
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.14.0
> Reporter: Joey Frazee
> Priority: Major
>
> FetchS3Object fails to retrieve small or zero byte files returning: The
> requested range is not satisfiable, Status Code: 416, Error Code:
> InvalidRange.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)