Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9470

Test Failures when attempting to set binary attributes if we are using an Active Directory User Store

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 14.0.0
    • Fix Version/s: 14.0.0
    • Component/s: idrepo
    • Labels:
    • Target Version/s:
    • Rank:
      1|hzrug7:
    • Sprint:
      114 -"Eagle"- Team Tesla

      Description

      When running the com.forgerock.openam.functionaltest.idrepo.testSetBinaryAttributes Temper tests when we have an Active Directory UserStore we get the following failure:

      Message:New Generic Exception
      
      	at com.sun.identity.idm.remote.IdRemoteServicesImpl.processException(IdRemoteServicesImpl.java:164)
      	at com.sun.identity.idm.remote.IdRemoteServicesImpl.setAttributes(IdRemoteServicesImpl.java:364)
      	at com.sun.identity.idm.remote.IdRemoteCachedServicesImpl.setAttributes(IdRemoteCachedServicesImpl.java:532)
      	at com.sun.identity.idm.AMIdentity.store(AMIdentity.java:540)
      	at com.forgerock.openam.functionaltest.config.IDMConfigImpl.setBinaryAttributes(IDMConfigImpl.java:318)
      	at com.forgerock.openam.functionaltest.idrepo.TestIdRepo.testSetBinaryAttributes(TestIdRepo.java:206)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      	at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
      	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
      	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
      	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      	at org.testng.TestRunner.privateRun(TestRunner.java:774)
      	at org.testng.TestRunner.run(TestRunner.java:624)
      	at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
      	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
      	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
      	at org.testng.SuiteRunner.run(SuiteRunner.java:261)
      	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)
      	at org.testng.TestNG.runSuitesLocally(TestNG.java:1116)
      	at org.testng.TestNG.run(TestNG.java:1024)
      	at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:72)
      	at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:122)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)"

      It is not clear whether this is a bug or a test problem but it requires further investigation. It is also unlikely that it is a widely used feature.
      Note that we tried manually adding the binary file to a user in Active Directory using Active Directory Studio (as administrator) and this worked fine suggesting that the problem is not with the certificate type being used for the test.

      There was not time to investigate in full but the attribute name being used in the test was wrong and should be "userCertificate" it is also necessary to use the administrator console to add this attribute "userCertificate" on the Active Directory Userstore in the LDAP User Attributes.

      However we still get the above error

        Attachments

          Activity

            People

            Assignee:
            rich.riley Rich Riley [X] (Inactive)
            Reporter:
            edward.barker edwardb
            QA Assignee:
              edwardb edwardb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: