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

newResourceResponse() always process IResourceStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.5, 6.0.0-beta1
    • 1.5.6, 6.0.0-beta2
    • wicket

    Description

      The conditional statement 'if (resourceResponse.dataNeedsToBeWritten(attributes))' in PackageResource$newResourceResponse always turns true.

      dataNeedsToBeWritten() method internally uses its own lastModified field, which is null (by default) and always returns true at that point resulting in getting a stream and processing it every time.

      I think this ruins resource caching.

      NOTE: The API document of dataNeedsToBeWritten() exclaims setLastModified() be called first.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            terasaka.k Terasaka Kinya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: