ICEfaces
  1. ICEfaces
  2. ICE-7424

Avoid keeping in memory byte arrays of files generated by ace:dataExporter

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta2
    • Fix Version/s: 3.0.1, EE-3.0.0.GA
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any

      Description

      As described in ICE-7381, the ExportResource class had to be modified to retain the byte arrays of the files generated by ace:dataExporter. Previously, the Resource object only contained a reference to an input stream, which was was request-scoped. So, in cases when the file download failed at the first try, the data wasn't available after subsequent tries, and the downloaded file had no data. To improve this situation, the ExportResource class will have to be modified to re-invoke the generator to produce a new input stream to serve the file, without having to keep the bytes in memory.

        Issue Links

          Activity

          Hide
          Arturo Zambrano added a comment -

          Fixed at revision 28142 in the trunk and at revision 28143 in the maintenance branch.

          Show
          Arturo Zambrano added a comment - Fixed at revision 28142 in the trunk and at revision 28143 in the maintenance branch.
          Hide
          Arturo Zambrano added a comment -

          This fix wouldn't be applicable to ice.dataExporter, since with said component the generated files are first written to disk and then served as resources. They do not stay in memory.

          Show
          Arturo Zambrano added a comment - This fix wouldn't be applicable to ice.dataExporter, since with said component the generated files are first written to disk and then served as resources. They do not stay in memory.

            People

            • Assignee:
              Arturo Zambrano
              Reporter:
              Arturo Zambrano
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: