[
https://issues.apache.org/jira/browse/OLINGO-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephan Klevenz reassigned OLINGO-3:
------------------------------------
Assignee: Stephan Klevenz
> NPE guard for missing Accept headers
> ------------------------------------
>
> Key: OLINGO-3
> URL: https://issues.apache.org/jira/browse/OLINGO-3
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Environment: 1.0.0-SNAPSHOT
> Reporter: Aki Yoshida
> Assignee: Stephan Klevenz
> Priority: Minor
> Fix For: V2 1.0.0
>
> Attachments: odata-core-20130814.patch
>
>
> org.apache.olingo.odata2.core.rest.RestUtil's extractAcceptHeaders is not
> guarding against an NPE for the missing accept headers.
> cxf-2.7.x currently returns an empty list in this case, therefore it does not
> lead to an issue. However, the correct behavior is to return a null in this
> case.
> https://java.net/jira/browse/JAX_RS_SPEC-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=359530#action_359530
> Therefore, the above method should guard against an NPE for the acceptHeaders
> variable being null.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)