Felix
  1. Felix
  2. FELIX-3498

BundleInputStream is not able to handle bundles that only have a MANIFEST.MF entry

    Details

      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; }

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        81d 18h 53m 1 Karl Pauls 25/Jul/12 11:39
        Resolved Resolved Closed Closed
        13d 4h 36m 1 Lucas Galfaso 07/Aug/12 16:16
        Lucas Galfaso made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Lucas Galfaso added a comment -

        The patch fixed the issue

        Show
        Lucas Galfaso added a comment - The patch fixed the issue
        Karl Pauls made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s framework.security-2.2.0 [ 12318140 ]
        Resolution Fixed [ 1 ]
        Hide
        Karl Pauls added a comment -

        fixed in trunk r1365527. Please close if it works for you.

        Show
        Karl Pauls added a comment - fixed in trunk r1365527. Please close if it works for you.
        Hide
        Karl Pauls added a comment -

        Good catch. I'll try to get to it soon.

        Show
        Karl Pauls added a comment - Good catch. I'll try to get to it soon.
        Karl Pauls made changes -
        Assignee Karl Pauls [ karlpauls ]
        Richard S. Hall made changes -
        Field Original Value New Value
        Affects Version/s framework.security-2.0.1 [ 12319087 ]
        Affects Version/s framework-4.0.2 [ 12319086 ]
        Component/s Framework Security [ 12313239 ]
        Component/s Framework [ 12310352 ]
        Hide
        Lucas Galfaso added a comment -

        The bundle in question is a framework fragment that exposes a package that is part of the JVM

        Show
        Lucas Galfaso added a comment - The bundle in question is a framework fragment that exposes a package that is part of the JVM
        Lucas Galfaso created issue -

          People

          • Assignee:
            Karl Pauls
            Reporter:
            Lucas Galfaso
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development