Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349510

[macos] jpackage references non-existing default resource "entitlements.plist"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • tbd
    • 21, 23, 24
    • tools
    • generic
    • os_x

      At [1]:
      ---
      String defPath = (APP_STORE.fetchFrom(params) ?
          "sandbox.plist" : "entitlements.plist");
      createResource(defPath, params)
          .setCategory(I18N.getString("resource.entitlements"))
          .saveToFile(path);
      ---

      The "defPath" variable is set to the default resource name.
      There is "sandbox.plist" at [2], but there is no "entitlements.plist". The "defPath" variable should be set to null Instead of non-existing "entitlements.plist" null to indicate that jpackage doesn't supply default entitlements for non-app store app signing.

      The code should be corrected, and a relevant test should be added.

      [1] https://github.com/openjdk/jdk/blob/aad6664bb6d2b311b3e0cb056afaa9b6534bdbbb/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/MacAppImageBuilder.java#L165
      [2] https://github.com/openjdk/jdk/blob/aad6664bb6d2b311b3e0cb056afaa9b6534bdbbb/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/sandbox.plist

            almatvee Alexander Matveev
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: