d1cf785 Ticket 47964 - 1.2.11 - Incorrect search result after replacing an empty attribute

1 file Authored by lkrispen 8 years ago, Committed by nhosoi 8 years ago,
    Ticket 47964 - 1.2.11 - Incorrect search result after replacing an empty attribute
    
    Bug Description:  when a replace operation for a nonexisting attribute is
                      done without providing new values the entry is stored
                      with incorrect meta data: an empty deleted value without
                      attribute deletion csn.
    
    Fix Description:   in the delete phase of the replace operation already create
                       the attribute to set the deletion csn. It would be created anyway
                       in the add part of the replace operation.
                       The function to calculate the required size to write the entry
                       needs also to be adjusted.
    
    https://fedorahosted.org/389/ticket/47964
    
    Reviewed by: Rich, thanks
    
    Note for 389-ds-base-1.2.11: applying the patch just to entry2str_internal_size_attrlist (entry.c).
    
    (cherry picked from commit 3182d2e8524c319393ab37ffcf6a8aefb9b92b54)
    
        
file modified
+2 -0