Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-116

Content negotiation is not properly working

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.6
    • Fix Version/s: 3.0-incubating
    • Component/s: Web Services
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              wastl Sebastian Schaffert
              Reporter:
              wikier Sergio Fernández
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: