You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/01/14 22:23:20 UTC

[jira] [Created] (WICKET-5472) PackageResource#internalGetResourceStream() should return ProcessingResourceStream only when the resource is existing

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)