Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-21161

jfreechart generates "one time images". should generate "per-session" images

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      In ChartHelper we call

      ServletUtilities.saveChartAsPNG(chart, width, height, renderingInfo, null);
      

      That "null" tells jfreechart to generate a "one-time" image. As soon as jfreechart has sent it out to someone it deletes it. This causes problems in IE6 which seems to have a bug where it sometimes requests the same image twice in a row. This results in the second request getting a 404 (since jfreechart already deleted it).

      jfreechart also supports "per-session" images. We just need to pass in the HttpSession instead of null and jfreechart will keep the image around for the session.

      Andreas thinks this change was supposed to have happened in 4.0.x but it appears to have fallen through the cracks. We should put it into 4.1.x

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpendleton Justus Pendleton (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: