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

[Core R5] org.osgi.test.cases.framework.launch.secure OSGi CT test failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • Framework Security
    • None

    Description

      The org.osgi.test.cases.framework.launch.secure OSGi CT test suite has 3 errors/failures:

      org.osgi.test.cases.framework.launch.secure.junit.ExtensionBundleTests
      testFrameworkExtensionPermission(org.osgi.test.cases.framework.launch.secure.junit.ExtensionBundleTests)
      junit.framework.AssertionFailedError: expected extension bundle to fail install due to lack of permission expected:[org.osgi.framework.BundleException] and got nothing
      at junit.framework.Assert.fail(Assert.java:47)
      at org.osgi.test.support.compatibility.DefaultTestBundleControl.failException(DefaultTestBundleControl.java:88)
      at org.osgi.test.cases.framework.launch.secure.junit.ExtensionBundleTests.testFrameworkExtensionPermission(ExtensionBundleTests.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:164)
      at junit.framework.TestCase.runBare(TestCase.java:130)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at aQute.junit.Activator.test(Activator.java:226)
      at aQute.junit.Activator.automatic(Activator.java:118)
      at aQute.junit.Activator.run(Activator.java:59)

      testFrameworkExtensionInvokerPermission(org.osgi.test.cases.framework.launch.secure.junit.ExtensionBundleTests)
      org.osgi.framework.BundleException: expected extension bundle to fail install due to lack of permission
      at org.osgi.test.cases.framework.launch.secure.fragments.tb16a.Activator.start(Activator.java:67)
      at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1630)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:636)
      at org.apache.felix.framework.Felix.activateBundle(Felix.java:2152)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2070)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:971)
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:958)
      at org.osgi.test.cases.framework.launch.secure.junit.ExtensionBundleTests.testFrameworkExtensionInvokerPermission(ExtensionBundleTests.java:117)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:164)
      at junit.framework.TestCase.runBare(TestCase.java:130)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at aQute.junit.Activator.test(Activator.java:226)
      at aQute.junit.Activator.automatic(Activator.java:118)
      at aQute.junit.Activator.run(Activator.java:59)

      org.osgi.test.cases.framework.launch.secure.junit.FrameworkLaunchTests
      testTrustRepositories(org.osgi.test.cases.framework.launch.secure.junit.FrameworkLaunchTests)
      junit.framework.AssertionFailedError: Expecting 1 signer expected:<1> but was:<0>
      at junit.framework.Assert.fail(Assert.java:47)
      at junit.framework.Assert.failNotEquals(Assert.java:280)
      at junit.framework.Assert.assertEquals(Assert.java:64)
      at junit.framework.Assert.assertEquals(Assert.java:198)
      at org.osgi.test.cases.framework.launch.secure.junit.FrameworkLaunchTests.doTestTrustRepository(FrameworkLaunchTests.java:110)
      at org.osgi.test.cases.framework.launch.secure.junit.FrameworkLaunchTests.testTrustRepositories(FrameworkLaunchTests.java:93)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:164)
      at junit.framework.TestCase.runBare(TestCase.java:130)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:120)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at junit.framework.TestSuite.runTest(TestSuite.java:230)
      at junit.framework.TestSuite.run(TestSuite.java:225)
      at aQute.junit.Activator.test(Activator.java:226)
      at aQute.junit.Activator.automatic(Activator.java:118)
      at aQute.junit.Activator.run(Activator.java:59)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bosschaert David Bosschaert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: