Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1200

DefaultPartitionNexus unable to use non-JdbmPartition as systemPartition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.4
    • core
    • None

    Description

      Attempt to use any partition type (other than JdbmPartition) will result in an NPE. There is a simple fix, cause is probably a typo.

      See diff below:

      $ svn diff apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
      Index: apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
      ===================================================================
      — apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (revision 676079)
      +++ apacheds/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (working copy)
      @@ -423,9 +423,9 @@
      }

      ( ( JdbmPartition ) override ).setIndexedAttributes( indices );
      -

      • system = override;
        }
        +
        + system = override;
        }
        else
        {

      Attachments

        Activity

          People

            akarasulu Alex Karasulu
            ickydude Icky Dude
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: