Uploaded image for project: 'Cache Modules'
  1. Cache Modules
  2. MGNLCACHE-188

Cache endpoint does not correctly set content-type on response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 5.6
    • cache browser
    • None

    Description

      Using the following call:

      curl -X GET http://localhost:8080/magnoliaPublic/.rest/cache/v1/ping \
       -u superuser:superuser
      

      produces this warning on public:

      2017-11-02 14:47:01,102 WARN  info.magnolia.cms.filters.ContentTypeFilter       : Content type for http://localhost:8080/magnoliaPublic/.rest/cache/v1/ping is not set.
      2017-11-02 14:47:01,103 WARN  info.magnolia.cms.filters.ContentTypeFilter       : Response is not committed yet. Setting content type: text/html.
      

      the code specifies it will respond with json.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                rgange Richard Gange
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD