Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6923

Content-Type header not set when serving binaries from website

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 5.4.9
    • rendering
    • None

      When serving binary content, for example, images uploaded in the website repository (contained within component/page) the Content-Type header is not set. I've narrowed it down to this class info.magnolia.rendering.engine.RenderingFilter...more specifically handleResourceRequest(...) method, no calls to response.setContentType(...) are made. I've compared headers between Magnolia 4.5.22 and 5.4.9 and in 4.5.22, I have the correct header info.

      my GET request is something like this

      http://localhost:8080/magnoliaAuthor/{path-to-component}/{image-node-name}.{ext}
      

        Acceptance criteria

              Unassigned Unassigned
              yorkish Ugo La Giorgia
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD