arturobernalg opened a new pull request, #1106: URL: https://github.com/apache/tomcat/pull/1106
RFC 9110, section 5.6.1.2 requires a recipient to parse and ignore empty list elements. `Ranges.parse` returned null for values such as `bytes=0-9,,10-19`, `bytes=0-9,` or `bytes=,0-9`, so the Range header was ignored for them. This change skips the empty elements. A list that has no element at all, such as `bytes=,`, is still rejected. TestRanges.testValid05 covers the empty element variants and fails with a NullPointerException without the change. testInvalid09 covers the list with no element. TestRanges and TestDefaultServlet pass. -- 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]
