Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2062

Unexpected order of security-manager permission checks on Eclipse OpenJ9 VM AdoptOpenJDK 11

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 1.14.1.Final
    • None
    • None
    • None
    • ---
    • ---

    Description

      AlternateSecurityManagerTest fails on Eclipse OpenJ9 VM AdoptOpenJDK 11 because of unexpected order of security-manager permission checks.

      Stacktrace:

      testDoPrivilegedWithParameter_WithContext(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0.05 sec  <<< FAILURE!
      java.lang.AssertionError: Matching CodeSource Location expected:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/test-classes/> but was:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/classes/>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testDoPrivilegedWithParameter_WithContext(AlternateSecurityManagerTest.java:314)
      
      testDoChecked_WithContext(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0 sec  <<< FAILURE!
      java.lang.AssertionError: Matching CodeSource Location expected:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/classes/> but was:<file:/home/mkopecky/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testDoChecked_WithContext(AlternateSecurityManagerTest.java:268)
      
      testDoUnchecked_WithContext(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0.001 sec  <<< FAILURE!
      java.lang.AssertionError: Matching CodeSource Location expected:<file:/home/mkopecky/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar> but was:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/classes/>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testDoUnchecked_WithContext(AlternateSecurityManagerTest.java:210)
      
      testDoUnchecked(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0.001 sec  <<< FAILURE!
      java.lang.AssertionError: Matching CodeSource Location expected:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/test-classes/> but was:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/classes/>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testDoUnchecked(AlternateSecurityManagerTest.java:187)
      
      testDoPrivilegedWithParameter(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0.001 sec  <<< FAILURE!
      java.lang.AssertionError: Matching CodeSource Location expected:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/test-classes/> but was:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/classes/>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testDoPrivilegedWithParameter(AlternateSecurityManagerTest.java:291)
      
      testGetPropertyPrivileged(org.wildfly.security.manager.AlternateSecurityManagerTest)  Time elapsed: 0.001 sec  <<< FAILURE!
      java.lang.AssertionError: Our CodeSource expected:<file:/home/mkopecky/playground/elytron/1.x/manager/base/target/test-classes/> but was:<file:/home/mkopecky/.m2/repository/org/wildfly/security/wildfly-elytron-security-manager-action/1.14.1.CR1-SNAPSHOT/wildfly-elytron-security-manager-action-1.14.1.CR1-SNAPSHOT.jar>
      	at org.wildfly.security.manager.AlternateSecurityManagerTest.testGetPropertyPrivileged(AlternateSecurityManagerTest.java:161)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: