[Bug 2054940] [NEW] pgpainless: fails to build from source with Java 21 due to SecurityManager UnsupportedException

Vladimir Petko 2054940 at bugs.launchpad.net
Sun Feb 25 20:28:37 UTC 2024


Public bug reported:

The package fails to build from source due to the exception during
tests:

   JUnit
Jupiter:SignUsingPublicKeyBehaviorTest:testSignatureCreationAndVerification()
     MethodSource [className =
'org.pgpainless.cli.misc.SignUsingPublicKeyBehaviorTest', methodName =
'testSignatureCreationAndVerification', methodParameterTypes = '']
     => java.lang.UnsupportedOperationException: The Security Manager is
deprecated and will be removed in a future release
        java.base/java.lang.System.setSecurityManager(System.java:430)
com.ginsberg.junit.exit.SystemExitExtension.beforeEach(SystemExitExtension.java:95)
        java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        Suppressed: org.opentest4j.AssertionFailedError: Expected
System.exit(79) to be called, but it was not. ==> expected: <79> but was:
<null>
com.ginsberg.junit.exit.SystemExitExtension.afterEach(SystemExitExtension.java:67)
          [...]

The tests need to run with -Djava.security.manager=allow for the junit
SystemExit extension to work.

** Affects: java-common (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pgpainless (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: pgpainless (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: update-excuse

** Also affects: java-common (Ubuntu)
   Importance: Undecided
       Status: New

** Bug watch added: Debian Bug tracker #1064780
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064780

** Also affects: pgpainless (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064780
   Importance: Unknown
       Status: Unknown

** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to java-common in Ubuntu.
https://bugs.launchpad.net/bugs/2054940

Title:
  pgpainless: fails to build from source with Java 21 due to
  SecurityManager UnsupportedException

Status in java-common package in Ubuntu:
  New
Status in pgpainless package in Ubuntu:
  New
Status in pgpainless package in Debian:
  Unknown

Bug description:
  The package fails to build from source due to the exception during
  tests:

     JUnit
  Jupiter:SignUsingPublicKeyBehaviorTest:testSignatureCreationAndVerification()
       MethodSource [className =
  'org.pgpainless.cli.misc.SignUsingPublicKeyBehaviorTest', methodName =
  'testSignatureCreationAndVerification', methodParameterTypes = '']
       => java.lang.UnsupportedOperationException: The Security Manager is
  deprecated and will be removed in a future release
          java.base/java.lang.System.setSecurityManager(System.java:430)
  com.ginsberg.junit.exit.SystemExitExtension.beforeEach(SystemExitExtension.java:95)
          java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
          java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
          Suppressed: org.opentest4j.AssertionFailedError: Expected
  System.exit(79) to be called, but it was not. ==> expected: <79> but was:
  <null>
  com.ginsberg.junit.exit.SystemExitExtension.afterEach(SystemExitExtension.java:67)
            [...]

  The tests need to run with -Djava.security.manager=allow for the junit
  SystemExit extension to work.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/java-common/+bug/2054940/+subscriptions




More information about the foundations-bugs mailing list