#50925 Schema comparison does not support attribute aliases
Closed: wontfix 3 years ago by spichugi. Opened 4 years ago by tbordaz.

Issue Description

Comparison of attributetype schema definitions does not support aliases. For example the two definitions are equal

attributeTypes: ( 2.5.4.3 NAME ( 'cn' 'commonName' ) SUP name X-ORIGIN 'RFC 4519' X-DEPRECATED 'commonName' )

attributeTypes: ( 2.5.4.3 NAME ( 'cn' 'commonName', 'extraPossibleNameHere' ) SUP name X-ORIGIN 'RFC 4519' X-DEPRECATED 'commonName' )

For migration from others LDAP, extending aliases can be useful. At the moment such definition being equal there is a risk to override an extended definition.

Package Version and Platform

since 1.2.11 (schema learning feature)

Steps to reproduce

  1. Extend an attribute definition with an new alias on M1
  2. Update the schema on M2
  3. do an update of a replicated entry on M2
  4. reenable replicaiton
  5. Schema M2 is replicated on M1-M2 and the new alias definition is lost

Actual results

Risk to loose a alias definition of an attribute

Expected results

Alias definition should be preserved


Change to be done in schema_at_compare that currently supports single/multi, MR and syntax but not aliases

Metadata Update from @tbordaz:
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to None

4 years ago

Metadata Update from @mreynolds:
- Issue priority set to: normal
- Issue set to the milestone: 1.4.3

4 years ago

Metadata Update from @mreynolds:
- Issue tagged with: Schema

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/3978

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata