Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1438

ParseException when "Bundle-Description" is present in OSGI MANIFEST.MF

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.4.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      When a "Bundle-Description" is present in a parsed "MANIFEST.MF" file then a ParseException is thrown.

      EXAMPLE (from Eclipse 4.2.2 "plugin" Directory):
      javax.servlet_3.0.0.v201112011016.jar!/META-INF/MANIFEST.MF

      DESCRIPTION (from above manifest):
      Bundle-Description: glassfish javax.servlet.3.1.0.b33

      EXCEPTION:
      Caused by: java.text.ParseException: Expecting the end of a value or of an parameter name
      at org.apache.ivy.osgi.core.ManifestHeaderValue$ManifestHeaderParser.error(ManifestHeaderValue.java:179)
      at org.apache.ivy.osgi.core.ManifestHeaderValue$ManifestHeaderParser.error(ManifestHeaderValue.java:175)
      at org.apache.ivy.osgi.core.ManifestHeaderValue$ManifestHeaderParser.parseValueOrParameter(ManifestHeaderValue.java:218)
      at org.apache.ivy.osgi.core.ManifestHeaderValue$ManifestHeaderParser.parseElement(ManifestHeaderValue.java:185)
      at org.apache.ivy.osgi.core.ManifestHeaderValue$ManifestHeaderParser.parse(ManifestHeaderValue.java:155)
      at org.apache.ivy.osgi.core.ManifestHeaderValue.<init>(ManifestHeaderValue.java:51)
      at org.apache.ivy.osgi.core.ManifestParser.parseManifest(ManifestParser.java:107)

      REPRODUCE:

      Try to create a ManifestHeaderValue like this:

       
      new ManifestHeaderValue("glassfish javax.servlet.3.1.0.b33")
      

        Attachments

          Activity

            People

            • Assignee:
              hibou Nicolas Lalevée
              Reporter:
              michael-schnell Michael Schnell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: