Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1799

When deleting values from an existing entry, the presence index might get out of date

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M10
    • Fix Version/s: 2.0.0-M11
    • Component/s: None
    • Labels:
      None

      Description

      We use the reverse index to detect if an AT is not anymore present in an entry after a modification ::
      /*

      • If no attribute values exist for this entryId in the index then
      • we remove the presence index entry for the removed attribute.
        */
        if ( null == index.reverseLookup( id ) ) { presenceIdx.drop( modsOid, id ); }

      If the AT index does not have a reverse index, this operation will do nothing, and the presence index will select entries which are not anymore useful.

      We should instead check if the Attribute is still existng after the modification, and if not, remove it from the presence index without checking into it.

        Activity

        Emmanuel Lecharny created issue -
        Hide
        Emmanuel Lecharny added a comment -
        Show
        Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/r1447827
        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Emmanuel Lecharny made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development