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

Innaccurate error message when POSTing to LDPCv with memento-header but no body

    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

      The response body mentions how a property is missing.  I would have expected it to mention the broader issue - that there is no message body. This is exceedingly minor, if a problem at all.

       

      {{curl -i -X POST --user fedoraAdmin:fedoraAdmin -H "Memento-Datetime: Wed, 30 May 2018 23:02:44 GMT" -H "Content-Type: text/turtle" http://localhost:8080/rest/versioning/v9/fcr:versions }}

       

      HTTP/1.1 400 Bad Request
      Date: Wed, 29 Aug 2018 21:27:00 GMT
      Set-Cookie: JSESSIONID=yl6cm7f1tsp10bxdre0qlf7a;Path=/
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Tue, 28-Aug-2018 21:27:00 GMT
      Link: <http://localhost:8080/static/constraints/ConstraintViolationException.rdf>; rel="http://www.w3.org/ns/ldp#constrainedBy"
      Content-Type: text/plain;charset=utf-8
      Content-Length: 80
      Server: Jetty(9.3.1.v20150714)

       

      Missing required property http://fedora.info/definitions/v4/repository#createdBy

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.pennell Ben Pennell
              Reporter:
              kefo Kevin Ford
              Reviewer:
              Andrew Woods
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: