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

Error Content-Types incorrect and differ based on HTTP method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.5.0
    • Fix Version/s: Fedora 4.7.4
    • Component/s: f4-core
    • Labels:
    • Roadmap Theme:
      Services: CRUD
    • Sprint:
      Sprint 2015 - 13, Sprint 2016 - 18

      Description


      Issue: The content types for errors do not match the format of the body returned.

      Expected: Content types match the media type of the returned representation

      Steps to Reproduce:
      * Spin up empty 4.5 repo.
      * curl http://localhost:8080/rest/fcr:accessroles

      Response received:
      Status: 400, with Content-Type: text/turtle
      Content-Length: 34
      Body: Prefix fcr has not been registered

      Which is text/plain, not text/turtle.

      * curl -I http://localhost:8080/rest/fcr:accessroles (HEAD not GET)

      Status: 400, with ContentType: text/html
      Content-Length: 308

      Which is completely unrelated to what happens when you do a GET.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbernstein Danny Bernstein
                Reporter:
                azaroth42 Rob Sanderson
                Reviewer:
                Andrew Woods
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: