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

PackageResourceReference.lookupStream(IResourceStreamLocator, Locale, String, String) creates wrong PackageResourceReference.StreamInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC4
    • 1.5-RC5
    • wicket
    • None

    Description

      org.apache.wicket.request.resource.PackageResourceReference.lookupStream(IResourceStreamLocator, Locale, String, String) asks the IResourceStreamLocator to find the IReqourceStream with these parameters but this locator may return a ResourceReference with a weaker Key, e.g. ignored Locale: the lookup is for (Some.class, "some.css", Locale.US) but the result is (Some.class, "some.css").

      StreamInfo should use the returned IResourceStream's settings (locale, style, variation) instead of the searched ones.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: