[
https://issues.apache.org/jira/browse/SLING-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bertrand Delacretaz resolved SLING-1346.
----------------------------------------
Resolution: Fixed
Fix Version/s: OSGi Installer 3.0.2
Implemented in revision 906108
> 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: OSGi Installer 3.0.2
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.