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

CacheResponseWrapper doesn't retrieve contentType correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.6.4, 5.8.3, 5.9.1
    • 5.1, 5.6.3, 5.8.1
    • None
    • Yes
    • Yes
    • Yes
    • Maintenance 1, Maintenance 2
    • 8

    Description

      I added a (spring MVC) rest service for one of my content workspaces and noticed that cached responses have a content-type header of text/html instead of application/json.

      From what I can see, this is because CacheResponseWrapper stores the content-type header in its own map, but when invoking
      final String contentType = cachedResponse.getContentType()
      in Store.java
      then the header is incorrectly retrieved from the wrapped object instead, which holds a default text/html content type.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              ctytgat Tytgat Christian
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 0.45h Remaining Estimate - 0.65h
                    0.65h
                    Logged:
                    Time Spent - 0.45h Remaining Estimate - 0.65h
                    0.45h