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

                 Key: WICKET-3731
                 URL: https://issues.apache.org/jira/browse/WICKET-3731
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.5-RC4
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov
             Fix For: 1.5-RC5


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to