You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Dietmar Glachs (JIRA)" <ji...@apache.org> on 2015/04/07 10:17:12 UTC

[jira] [Resolved] (MARMOTTA-606) Accept Header parsing in SPARQL Web Service not correct

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

Dietmar Glachs resolved MARMOTTA-606.
-------------------------------------
    Resolution: Fixed

Changed SparqlWebService to check all provided "Accept" headers. 

For example when using Sesame SPARQLRepository - the old implementation reported "no result format specified or unsupported result format" - because the method checked only the first header and the "MarmottaHttpUtils#bestContentType" method could not find a matching type ...

Now the full list of requested Accept Headers is used when searching for bestContentType!


> Accept Header parsing in SPARQL Web Service not correct
> -------------------------------------------------------
>
>                 Key: MARMOTTA-606
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-606
>             Project: Marmotta
>          Issue Type: Bug
>          Components: Platform
>    Affects Versions: 3.3.0
>            Reporter: Dietmar Glachs
>            Assignee: Dietmar Glachs
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The parsing of the provided accept headers (HttpServletRequest) checks only the first header entry - see HttpServletRequest#getHeader-Method
> Implementation should use the getHeaders in order to check all provided accept header parameters. Proposed solution: provide method in MarmottaHttpUtils to check the Enumeration<String>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)