Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
framework.security-2.0.1
-
None
Description
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;
}