[
https://issues.apache.org/jira/browse/SLING-13416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joerg Hoh reassigned SLING-13416:
---------------------------------
Assignee: Joerg Hoh
> 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
> Assignee: Joerg Hoh
> Priority: Major
>
> 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)