Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-1030

We can't save a modified OpenLDAP configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • OpenLDAP Config
    • None

    Description

      When we modify the OpenLDAP config, we get an error :

      org.apache.directory.studio.openldap.config.jobs.PartitionsDiffException: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
      	at org.apache.directory.studio.openldap.config.jobs.PartitionsDiffComputer.comparePartitions(PartitionsDiffComputer.java:290)
      	at org.apache.directory.studio.openldap.config.jobs.PartitionsDiffComputer.computeModifications(PartitionsDiffComputer.java:96)
      	at org.apache.directory.studio.openldap.config.jobs.PartitionsDiffComputer.computeModifications(PartitionsDiffComputer.java:87)
      	at org.apache.directory.studio.openldap.config.editor.ServerConfigurationEditorUtils.saveConfiguration(ServerConfigurationEditorUtils.java:368)
      	at org.apache.directory.studio.openldap.config.model.io.SaveConfigurationRunnable.run(SaveConfigurationRunnable.java:103)
      	at org.apache.directory.studio.common.core.jobs.StudioJob.run(StudioJob.java:83)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1184)
      	at org.apache.directory.studio.openldap.config.jobs.PartitionsDiffComputer.comparePartitions(PartitionsDiffComputer.java:163)
      	... 6 more
      Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.saveContextCsn(AbstractBTreePartition.java:3364)
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.lookup(AbstractBTreePartition.java:1180)
      	... 7 more
      Caused by: org.apache.directory.api.ldap.model.exception.LdapOperationErrorException
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1217)
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.saveContextCsn(AbstractBTreePartition.java:3348)
      	... 8 more
      Caused by: java.lang.NullPointerException
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.buildEntryDn(AbstractBTreePartition.java:2347)
      	at org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition.fetch(AbstractBTreePartition.java:1211)
      	... 9 more
      

      This is due to the un-initialized ehCache, so every associated cache are null.

      Attachments

        Activity

          People

            Unassigned Unassigned
            elecharny Emmanuel Lécharny
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: