Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6917

ACME draft-12 update: Verify response code for wrong content type

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      EJBCA Sprint 14

      Description

      From https://tools.ietf.org/html/draft-ietf-acme-acme-12#section-6.2 :

         Because client requests in ACME carry JWS objects in the Flattened JSON Serialization, they must have the "Content-Type" header field
         set to "application/jose+json". If a request does not meet this requirement, then the server MUST return a response with status code
         415 (Unsupported Media Type). 
      

      Test should test this.

      Throwing pure json on one of the methods that require authentication would be sufficient, since this is expected to be handled by the application server.

        Attachments

          Activity

            People

            Assignee:
            ulf_undmark Ulf Undmark
            Reporter:
            johan Johan Eklund
            Verified by:
            Jekaterina Bunina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h