Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-147

LdifEntry equals method does not compare entry attributes when changetype is None

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M17
    • 1.0.0-M18
    • Windows, Linux

    Description

      The equals() method of LdifEntry does not consider the inner entry's attributes when ChangeType is not specified in the LDIF entry.

      According to the the LDIF spec, when no changetype is specified in an LDIF entry, a changetype "ADD" is to be assumed.

      An easy fix would be, in the equals() method of LdifEntry.java, add case NONE to the switch at:

      // Check each different cases
      switch ( changeType )
      {

      case None: //<-- Add None case fall through
      case Add:
      ......

      Attachments

        Activity

          People

            elecharny Emmanuel Lécharny
            michael.e.moorman Michael Moorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified