[
https://issues.apache.org/jira/browse/DIRSTUDIO-1030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny reopened DIRSTUDIO-1030:
------------------------------------------
The previous fix is for a trivial NPE.
Still, we can't push a modified configuration to an OpenLDAP server because
such an update will contain deletions, which are not accepted by the server.
For instance :
{code}
dn: cn=config
changetype: modify
delete: olcTLSProtocolMin
-
delete: olcListenerThreads
-
{code}
will get a ERROR 53 (Unwilling to perform).
We have to find a workaround for such things.
> We can't save a modified OpenLDAP configuration
> -----------------------------------------------
>
> Key: DIRSTUDIO-1030
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1030
> Project: Directory Studio
> Issue Type: Bug
> Components: OpenLDAP Config
> Reporter: Emmanuel Lecharny
> Fix For: 2.0.0-M9
>
>
> When we modify the OpenLDAP config, we get an error :
> {code}
> 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
> {code}
> This is due to the un-initialized {{ehCache}}, so every associated cache are
> null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)