[
https://issues.apache.org/jira/browse/SLING-12322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848822#comment-17848822
]
Abhishek Garg commented on SLING-12322:
---------------------------------------
This PR was handling the case when the request with the RANGE header and
response size was less than the RANGE HEADER.
Apparently, this is against HTTP RFC
[https://greenbytes.de/tech/webdav/rfc9110.html#field.range]
marking this as closed.
thanks [~kwin]
> Stream Reader should Return SC_OK if content length is less than specified
> range
> --------------------------------------------------------------------------------
>
> Key: SLING-12322
> URL: https://issues.apache.org/jira/browse/SLING-12322
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.2.0
> Reporter: Abhishek Garg
> Priority: Major
>
> if the Request contains following header :
> {code:java}
> Range: bytes=0-8388607 {code}
> and file length is less than this, then we should return SC_OK(200) instead
> of
> SC_PARTIAL_CONTENT(206).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)