[midPoint-git] [Evolveum/midpoint] d8490e: Smart Integration: Fix well-known schema attribute...

Michal Zelenčík noreply at github.com
Tue Apr 14 13:43:52 CEST 2026


  Branch: refs/heads/improvement/name-post-heuristics
  Home:   https://github.com/Evolveum/midpoint
  Commit: d8490ef3c4001395d60877048dc59e7192c42ad7
      https://github.com/Evolveum/midpoint/commit/d8490ef3c4001395d60877048dc59e7192c42ad7
  Author: Michal Zelencik <michal.zelencik at evolveum.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/SystemMappingSuggestion.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ad/GroupActiveDirectoryMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ad/OrganizationalUnitActiveDirectoryMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ad/UserActiveDirectoryMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ldap/GroupOfNamesLdapMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ldap/InetOrgPersonLdapMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/ldap/OrganizationalUnitLdapMappingProvider.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/wellknownschemas/scim/UserScimMappingProvider.java

  Log Message:
  -----------
  Smart Integration: Fix well-known schema attribute paths with NS_RI prefix

Without an explicit namespace, ItemPath.create("mail") produces a
no-namespace QName.  When SchemaMatchService serialised these
paths the result was "c:attributes/mail".

All paths produced by the well-known-schema subsystem now consistently
carry the ri: namespace, ensuring they are recognised as equal to the
paths registered from the live resource schema.

Signed-off-by: Michal Zelencik <michal.zelencik at evolveum.com>


  Commit: ea53cb4656ac8c273853f34d4521944389c9fba9
      https://github.com/Evolveum/midpoint/commit/ea53cb4656ac8c273853f34d4521944389c9fba9
  Author: Michal Zelencik <michal.zelencik at evolveum.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    A model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/PostSchemaMatchHeuristics.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/SchemaMatchService.java
    M model/smart-impl/src/main/java/com/evolveum/midpoint/smart/impl/StatisticsService.java
    M model/smart-impl/src/test/java/com/evolveum/midpoint/smart/impl/TestCorrelatorSuggestions.java

  Log Message:
  -----------
  Smart Integration: Add post-schema-match heuristics: name-expansion and uniqueness filter

- Name-expansion heuristic: for each shadow attribute that the AI mapped
  to a correlatable focus property, also emit a shadow-attr -> focus:name
  mapping.
- Uniqueness-filter heuristic: drops shadow-attr -> focus:name mappings
  where the attribute's unique-value ratio (from object-type statistics)
  falls below UNIQUENESS_THRESHOLD (0.9), preventing low-cardinality
  attributes from being suggested as name candidates.

SchemaMatchService now injects StatisticsService and loads (or
synchronously computes and stores) ShadowObjectClassStatisticsType
before heuristics are applied.

Signed-off-by: Michal Zelencik <michal.zelencik at evolveum.com>


Compare: https://github.com/Evolveum/midpoint/compare/d8490ef3c400%5E...ea53cb4656ac

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list