Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6522

Empty name is not allowed in JDK17+

    XMLWordPrintableJSON

Details

    • Patch, Important

    Description

      Bug

      When GlassFish enables the SecurityManager, it is unable to start on JDK17 and JDK18, because BundleWiringImpl throws IAE. 

      Cause

      BasicPermission.init checks for an empty string since JDK17 (maybe earlier, but in JDK11 did not). Some capabilities return an empty string (I did not investigate which, I just saw the stacktrace in GlassFish). CapabilityPermission constructor then crashes.

      Minor note

      The SecurityManager feature is now deprecated in JDK and marked for removal, so there should be some plan for Felix soon.

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              dmatej David Matějček
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified