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

Resource getResourceStream called twice with single request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.15
    • 1.5-RC2
    • wicket
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: