| | |
| | | AttributeType attrType = |
| | | DirectoryServer.getAttributeType(DS_SYNC_CONFLICT, true); |
| | | Attribute attr = Attributes.create(attrType, AttributeValues.create( |
| | | attrType, targetDN.toString())); |
| | | attrType, targetDN.toNormalizedString())); |
| | | Modification mod = new Modification(ModificationType.REPLACE, attr); |
| | | newOp.addModification(mod); |
| | | } |
| | |
| | | AttributeType attrType = DirectoryServer.getAttributeType(DS_SYNC_CONFLICT, |
| | | true); |
| | | Attribute attr = Attributes.create(attrType, AttributeValues.create( |
| | | attrType, conflictDN.toString())); |
| | | attrType, conflictDN.toNormalizedString())); |
| | | List<Modification> mods = new ArrayList<Modification>(); |
| | | Modification mod = new Modification(ModificationType.REPLACE, attr); |
| | | mods.add(mod); |
| | |
| | | */ |
| | | private void addConflict(AddMsg msg) throws ASN1Exception |
| | | { |
| | | String normalizedDN; |
| | | try |
| | | { |
| | | normalizedDN = DN.decode(msg.getDn()).toNormalizedString(); |
| | | } catch (DirectoryException e) |
| | | { |
| | | normalizedDN = msg.getDn(); |
| | | } |
| | | |
| | | // Generate an alert to let the administrator know that some |
| | | // conflict could not be solved. |
| | | Message alertMessage = NOTE_UNRESOLVED_CONFLICT.get(msg.getDn()); |
| | | Message alertMessage = NOTE_UNRESOLVED_CONFLICT.get(normalizedDN); |
| | | DirectoryServer.sendAlertNotification(this, |
| | | ALERT_TYPE_REPLICATION_UNRESOLVED_CONFLICT, alertMessage); |
| | | |
| | | // Add the conflict attribute |
| | | msg.addAttribute(DS_SYNC_CONFLICT, msg.getDn()); |
| | | msg.addAttribute(DS_SYNC_CONFLICT, normalizedDN); |
| | | } |
| | | |
| | | /** |