You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2017/09/20 12:13:01 UTC
[jira] [Closed] (SLING-1346) BundleUpdateTask should check for null
InputStream
[ https://issues.apache.org/jira/browse/SLING-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Munteanu closed SLING-1346.
----------------------------------
> BundleUpdateTask should check for null InputStream
> --------------------------------------------------
>
> Key: SLING-1346
> URL: https://issues.apache.org/jira/browse/SLING-1346
> Project: Sling
> Issue Type: Bug
> Components: Installer
> Reporter: Bertrand Delacretaz
> Assignee: Bertrand Delacretaz
> Priority: Minor
> Fix For: Installer Core 3.0.0
>
>
> BundleUpdateTask currently does
> b.update(resource.getInputStream(ctx.getBundleContext()));
> if for any reason resource.getInputStream(...) returns null, the Bundle object will try to update itself from its location.
> As the location starts with jcrinstall:, the framework complains with a "java.net.MalformedURLException: unknown protocol: jcrinstall" if that happens.
> To avoid this, we need to check if the input stream is null, and log a warning instead of trying to update the bundle if that happens.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)