[
https://issues.apache.org/jira/browse/MARMOTTA-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596990#comment-13596990
]
Sebastian Schaffert commented on MARMOTTA-116:
----------------------------------------------
I don't really understand the bug report. It seems to be working as it is
supposed to, even with more complex Accept headers.
> Content negotiation is not properly working
> -------------------------------------------
>
> Key: MARMOTTA-116
> URL: https://issues.apache.org/jira/browse/MARMOTTA-116
> Project: Marmotta
> Issue Type: Bug
> Components: Web Services
> Affects Versions: 2.6
> Reporter: Sergio Fernández
> Assignee: Sebastian Schaffert
> Priority: Critical
> Fix For: 3.0-incubating
>
>
> Content negotiation is not properly working, see for instance:
> sergio@wolfcastle:~$ curl -X PUT -i -H "Content-Type: text/rdf+n3; rel=meta"
> -d '<http://localhost:8080/resource/1234>
> <http://www.w3.org/2000/01/rdf-schema#label> "Test Resource".'
> http://localhost:8080/resource/1234
> HTTP/1.1 200 OK
> Server: Apache Marmotta/3.0.0-incubating-SNAPSHOT (build 0)
> Content-Length: 0
> Date: Tue, 26 Feb 2013 10:44:48 GMT
> sergio@wolfcastle:~$ curl -I -H "Accept: text/html"
> http://localhost:8080/resource/1234
> HTTP/1.1 406 Not Acceptable
> Server: Apache Marmotta/3.0.0-incubating-SNAPSHOT (build 0)
> Content-Type: text/plain;charset=UTF-8
> Content-Length: 467
> Date: Tue, 26 Feb 2013 10:45:15 GMT
> sergio@wolfcastle:~$ curl -I -H "Accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
> http://localhost:8080/resource/1234
> HTTP/1.1 303 See Other
> Server: Apache Marmotta/3.0.0-incubating-SNAPSHOT (build 0)
> ETag: W/"50b6c92c"
> Last-Modified: Tue Feb 26 11:44:48 CET 2013
> Location: http://localhost:8080/meta/application/xml/1234
> Vary: Accept
> Content-Type: application/xml;q=1.0;rel=meta
> Content-Length: 0
> Date: Tue, 26 Feb 2013 10:46:03 GMT
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira