You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2010/02/03 16:31:28 UTC
[jira] Created: (SLING-1346) BundleUpdateTask should check for null
InputStream
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
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.
[jira] Resolved: (SLING-1346) BundleUpdateTask should check for
null InputStream
Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
[ 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.