cgrzemba / 389-ds-base

Forked from 389-ds-base 5 years ago
Clone

39870fe Ticket #55 - Limit of 1024 characters for nsMatchingRule

Authored and Committed by mreynolds 12 years ago
    Ticket #55 - Limit of 1024 characters for nsMatchingRule
    
    Bug Description:  If the total length of all the nsMatchingRule attribute values in an index, exceeds
                      1024 characters, the remaining values will get truncated.
    
    Fix Description:  Previously there was static buffer of 1024 chars. The reason for creating the buffer
                      was to comply with some older code.  Where we needed to take slapi attrs, and
                      convert them into comma separated lists. I changed the code to just use the slapi attrs
                      instead of comma separated lists.  Thus removing all the static buffers in this area of
                      the code.
    
                      I also, removed some unneccessary loops that were checking for muliple cn values.  This
                      was not neccessary.  However removing the loop caused a lot of indentation changes,
                      which makes the diff quite long.
    
    	https://fedorahosted.org/389/ticket/55