[
https://issues.apache.org/jira/browse/CXF-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15406014#comment-15406014
]
Shon Vella commented on CXF-4927:
---------------------------------
It is unclear to me why this change was made since not only is it a breaking
change, it doesn't conform to the JAX-RS specification as I read it, which says
that it should return a list and does not mention returning null. If no header
is available, it should return an empty list. If a header is available but it
has no value, then the list item for that header should contain the empty
string.
> HttpHeaders.getRequestHeader has to return null if no header is available
> -------------------------------------------------------------------------
>
> Key: CXF-4927
> URL: https://issues.apache.org/jira/browse/CXF-4927
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Priority: Minor
> Fix For: 3.0.0-milestone1
>
>
> At the moment an empty list is returned if no header is available but this
> conflicts with the case when an empty header is provided. Lets limit the
> update to 2.8.0 as it may break some of the older code
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)