Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2477

New DownloadAction adjusting buffer size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.6 Beta
    • 1.2 Family
    • Extras
    • None
    • Operating System: other
      Platform: All
    • 35087

    Description

      A review of the new DownloadAction code seems to have the following problem:

      The getBufferSize method is defined:
      protected int getBufferSize()

      { return DEFAULT_BUFFER_SIZE; }

      But it does not appear to be used:

      byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];

      A search of the code does indicate the getBufferSize method is actually called
      anywhere, so overriding the method does not seem useful.

      (Minor nits aside, the DownloadAction is very helpful – thanks!)

      Attachments

        Activity

          People

            Unassigned Unassigned
            filreis@aol.com Jim Filreis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: