Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2851

Incorrect status code and message for not appropriate Accept-datetime value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 5.0.0
    • Component/s: None

      Description

      Spec states that if there is no appropriate datetime marker for the requested versioned resource, then server should respond with 406.  https://fcrepo.github.io/fcrepo-specification/#ldprv-get

      That should have happened here, but it didn't.  (I can attest that there was a version for the exact date and time in 2018, and the resource was successfully returned, but when I altered the year I didn't get the response I expected.)  See below.

      }}{{curl -i -X GET --user fedoraAdmin:fedoraAdmin -H "Accept-Datetime: Wed, 29 Aug 2017 15:47:50 GMT" http://localhost:8080/rest/versioning/v6

      HTTP/1.1 400 Bad Request
      Date: Wed, 29 Aug 2018 22:12:31 GMT
      Set-Cookie: JSESSIONID=stpgkk2zlwdoym8lxgy9ic9i;Path=/
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Tue, 28-Aug-2018 22:12:31 GMT
      Content-Type: text/plain;charset=utf-8
      Content-Length: 107
      Server: Jetty(9.3.1.v20150714)

      Invalid Accept-Datetime value. Please use RFC-1123 date-time format, such as 'Tue, 3 Jun 2008 11:05:30 GMT'

       

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lsitu Longshou Situ
              Reporter:
              kefo Kevin Ford
              Reviewer:
              Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: