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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC4
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: