You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Michael Bolz (JIRA)" <ji...@apache.org> on 2017/03/25 07:56:42 UTC

[jira] [Resolved] (OLINGO-1097) Failure while parsing HTTP header fields joined by multiple whitespaces

     [ https://issues.apache.org/jira/browse/OLINGO-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bolz resolved OLINGO-1097.
----------------------------------
    Resolution: Fixed

> Failure while parsing HTTP header fields joined by multiple whitespaces
> -----------------------------------------------------------------------
>
>                 Key: OLINGO-1097
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1097
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-core
>    Affects Versions: V2 2.0.8
>            Reporter: Dmitry Tretyakov
>            Assignee: Michael Bolz
>              Labels: patch
>             Fix For: V2 2.0.9
>
>         Attachments: 0002-OLINGO-1097-Failure-while-parsing-HTTP-header-fields.patch
>
>
> `RestUtil` while parsing HTTP header values allow to join multiple field values with comma and only one white space it causes that after parsing values are prefixed by white spaces which causes exceptions in `ContentType` instantiation and as result leads to BadRequestException.
> See RFC 2616 4.2: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
> Example of failing HTTP accept header field value:
> {code}
> application/atom+xml,  application/xml
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)