Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-234

Imported packages for OSGi manifest incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-3.1
    • jcs-3.2
    • None
    • None

    Description

      The Jira ticket JCS-228 attempted to make the imported packages optional in OSGi Manifest.

       

      However, it appears that this was done incorrectly. The change was to add:

           <commons.osgi.import>
               javax.servlet.*;resolution=optional,
               org.apache.commons.dbcp2.*;resolution=optional,
               org.apache.http.*;resolution=optional,
               org.apache.logging.log4j.*;resolution=optional
           </commons.osgi.import>

      However, there should be a colon between prior to the equals:

           <commons.osgi.import>
               javax.servlet.*;resolution:=optional,
               org.apache.commons.dbcp2.*;resolution:=optional,
               org.apache.http.*;resolution:=optional,
               org.apache.logging.log4j.*;resolution:=optional
           </commons.osgi.import>

      Without it, we can see that the import is not considered optional:

      But with the colon. it is correct:

      Attachments

        1. image-2023-05-04-11-55-51-212.png
          25 kB
          Chris Lake
        2. image-2023-05-04-11-52-45-029.png
          23 kB
          Chris Lake

        Activity

          People

            tv Thomas Vandahl
            chrislake Chris Lake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: