Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3210

JFreeChart plugin not setting correct mime type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.1.8
    • Component/s: Plugin - JFreeChart
    • Labels:
      None

      Description

      Using the jfreechart plugin. You can select PNG or JPEG image - but the HTML response sends HTML content type

      e.g. in my app

      Content-Type: text/html; charset=iso-8859-1

      This works if you use an <img src="..:"/> tag - but a direct call to the image URL returns the image as text to the browser.

      (BTW - not sure why there are several plugin components in this JIRA but not one for the chart plugin or for plugin: other)

        Attachments

        1. ChartResult.java.diff
          5 kB
          Mike Baranski
        2. cr.diff
          6 kB
          Mike Baranski

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chrissearle Chris Searle
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: