Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3357

Resource getResourceStream called twice with single request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.15
    • Fix Version/s: 1.5-RC2
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Tomcat on Windows 7. Jetty on Ubuntu Linux..

      Description

      getResourceStream is being called multiple times for Resource subclasses used to create dynamic images and/or textual data. This can be extremely inefficient depending on the work required to generate the resource. In my case, it presents a more serious problem because data inserted in the overriden getResourceStream method is duplicated in the database.

      The attached quickstart creates a dynamic image in getResourceStream. The method is called twice for a single request.

        Attachments

        1. myproject.zip
          7 kB
          Brad Grier

          Activity

            People

            • Assignee:
              pete Peter Ertl
              Reporter:
              bgrier Brad Grier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: