You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Lucas Galfaso (JIRA)" <ji...@apache.org> on 2012/05/04 18:48:49 UTC

[jira] [Commented] (FELIX-3498) BundleInputStream is not able to handle bundles that only have a MANIFEST.MF entry

    [ https://issues.apache.org/jira/browse/FELIX-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268523#comment-13268523 ] 

Lucas Galfaso commented on FELIX-3498:
--------------------------------------

The bundle in question is a framework fragment that exposes a package that is part of the JVM
                
> BundleInputStream is not able to handle bundles that only have a MANIFEST.MF entry
> ----------------------------------------------------------------------------------
>
>                 Key: FELIX-3498
>                 URL: https://issues.apache.org/jira/browse/FELIX-3498
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.2
>            Reporter: Lucas Galfaso
>            Priority: Minor
>
> When trying to deploy a bundle that only has a MANIFEST.MF, BundleInputStream throws a stack overflow exception. The issue is that it is not able to handle the case where there are no entries besides META-INF/MANIFEST.MF
> The bug can be traced back to
> BundleInputStream::read()
> // Stuff
> if (m_content.hasMoreElements())
> {
>   // More stuff
> }
> and it should be
> if (m_content.hasMoreElements())
> {
>   // More stuff
> }
> else
> {
>   m_output.close();
>   m_output = null;
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira