Joerg Hoh created SLING-13416:
---------------------------------
Summary: incorrect handling of "accept" request header
Key: SLING-13416
URL: https://issues.apache.org/jira/browse/SLING-13416
Project: Sling
Issue Type: Bug
Components: API
Affects Versions: API 3.0.2
Reporter: Joerg Hoh
The {{prefer(...)}} methods in {{JakartaMediaRangeList}} and the deprecated
{{MediaRangeList}} do not correctly negotiate HTTP {{Accept}} headers:
* Wildcards are not matched, and {{q=0}} exclusions and media-range specificity
are not respected.
* Media parameters, accept extensions, whitespace around quality parameters,
and invalid quality values can produce incorrect selections.
Consequently, callers may select a representation that the client explicitly
rejects, or receive {{null}} even when an offered representation is acceptable.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)