Martin Grigorov created WICKET-5472:
---------------------------------------

             Summary: PackageResource#internalGetResourceStream() should return 
ProcessingResourceStream only when the resource is existing
                 Key: WICKET-5472
                 URL: https://issues.apache.org/jira/browse/WICKET-5472
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.13.0
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov


The fix for WICKET-4762 introduced ProcessingResourceStream - a resource stream 
that wraps another IResourceStream and processes its InputStream (e.g. 
compresses it).

There is a bug that even when the resource is not found, i.e. the resource 
stream is null, Wicket still wraps it in ProcessingResourceStream.

Another inefficiency is that ResourceStreamWrapper (the parent of 
ProcessingResourceStream) declares its method #getDelegate() as protected. It 
should be public.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to