<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/attachment/ticket/47735/0001-Ticket-47735-e_uniqueid-fails-to-set-if-an-entry-is-.2.patch">https://fedorahosted.org/389/attachment/ticket/47735/0001-Ticket-47735-e_uniqueid-fails-to-set-if-an-entry-is-.2.patch</a><br>
</div>
<div class="moz-cite-prefix"><dd><br>
</dd>
<dd><br>
</dd>
<dd>git patch file (master; take 2) -- merged 2 args into 1 in
str2entry_state_information_from_type (Thanks to Rich for his
suggestion). </dd>
<br>
<br>
Noriko Hosoi wrote:<br>
</div>
<blockquote cite="mid:531A244F.6020309@redhat.com" type="cite"><a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/ticket/47735">https://fedorahosted.org/389/ticket/47735</a>
<br>
<br>
<a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/attachment/ticket/47735/0001-Ticket-47735-e_uniqueid-fails-to-set-if-an-entry-is-.patch">https://fedorahosted.org/389/attachment/ticket/47735/0001-Ticket-47735-e_uniqueid-fails-to-set-if-an-entry-is-.patch</a>
<br>
<br>
Bug Description:
<br>
When an entry is turned to be a conflict entry, its nsUniqueId has
<br>
a mdcsn info as a subtype like this:
<br>
nsUniqueId;mdcsn-5319136f000200010000:
c5e0d787-a58f11e3-b7f9dfd1-acc3d5e4
<br>
In this case, the attribute type is assigned to the berval "type"
<br>
as follows:
<br>
type.bv_val = "nsUniqueId;mdcsn-5319136f000200010000"
<br>
type.bv_len = 37
<br>
The subtyped stateinfo is processed in
str2entry_state_information_from_type,
<br>
which modifies type.bv_val to "nsUniqueId", but type.bv_len
remains 37.
<br>
str2entry_fast has this logic to set e_uniqueid, where the
nsUniqueId
<br>
with stateinfo fails to set the value to e_uniqueid.
<br>
if ( type.bv_len == 10 &&
<br>
PL_strncasecmp (type.bv_val, "nsUniqueId", type.bv_len) == 0
){
<br>
<br>
Fix Description: This patch resets the length of the type with the
<br>
basetype length 10 before the if expression is called for setting
<br>
e_uniqueid.
<br>
<br>
--
<br>
389-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:389-devel@lists.fedoraproject.org">389-devel@lists.fedoraproject.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://admin.fedoraproject.org/mailman/listinfo/389-devel">https://admin.fedoraproject.org/mailman/listinfo/389-devel</a><br>
</blockquote>
<br>
</body>
</html>