Repository navigation
Description
Detail Bug Report
Introduced in #25894 by @harshach on Apr 23, 2026
Summary
- Context: When a Suggestion task is approved,
TaskWorkflowHandler.applySuggestionwrites the accepted description onto the entity field named by the task payload'sfieldPath, viaFieldPathUtils(openmetadata-service/src/main/java/org/openmetadata/service/util/FieldPathUtils.java). For dot-separated paths,FieldPathUtils.parseFieldPathtreats the last dot segment as a property andnavigateAndSetDescription/getDescriptionFromListthen walk only to the named parent field, silently discarding the "property". - Bug: A bare nested-column field path such as
columns.parent.child(no.descriptionsuffix, which the v2.0.0 suggestion→task migration really produces) is mis-parsed as {container:columns, field:parent, property:child}, so the approved description is written to the parent columnparentinstead of the nested child columnchild— and the write reports success. - Actual vs. expected: The described text should land on the nested child column (that is where the legacy suggestion system wrote it, resolving
arrayFieldNameas the column FQN); instead the parent column's description is silently overwritten and the child is untouched. - Impact: Silent data corruption: approving ("applying") a migrated legacy nested-column description suggestion overwrites an unrelated (parent) column's description in the catalog, while the column the user intended stays unchanged, and success is logged.
Code with Bug
openmetadata-service/src/main/java/org/openmetadata/service/util/FieldPathUtils.java
String property = hasProperty ? parts[parts.length - 1] : "description"; // <-- BUG 🔴 any 3rd segment is assumed a property; for "columns.parent.child" it is the child column name
int fieldEnd = hasProperty ? parts.length - 1 : parts.length;
String fieldName =
FullyQualifiedName.unquoteName(
String.join(".", Arrays.copyOfRange(parts, 1, fieldEnd)));
return new FieldPathComponents(parts[0], fieldName, property);return fieldList != null // <-- BUG 🔴 property() never consulted; fieldName="parent" so the parent column is written
&& setDescriptionInList(fieldList, components.fieldName(), description);openmetadata-service/src/main/java/org/openmetadata/service/tasks/TaskWorkflowHandler.java
boolean success =
FieldPathUtils.updateFieldDescription(
entity, repository, user, fieldPath, suggestedValue, ...); // <-- BUG 🔴 returns true even though the wrong column was writtenExplanation
- For dot-separated field paths,
parseFieldPathassumes any 3rd (or later) segment is a "property" segment (e.g.description,tags). - Migrated legacy nested-column suggestions can produce field paths like
columns.parent.child(no explicit.description). This is parsed as container=columns, fieldName=parent, property=child. - The description update/read walkers ignore
components.property()entirely, so they operate only onfieldNameand write/read the parent column (parent) while discarding the child segment. - Repro evidence: calling
FieldPathUtils.updateFieldDescription(..., "columns.profile.child", "NEW-TEXT")returnstrueand persists a patch, but changesprofile.descriptionand leaveschild.descriptionunchanged;getFieldDescription(..., "columns.profile.child")also returns the parent description.
Codebase Inconsistency
openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v200/MigrationUtil.java emits property-less paths during suggestion→task migration:
if (arrayFieldName != null && arrayFieldValue != null) {
return fieldName + "." + arrayFieldName + "." + arrayFieldValue;
} else if (arrayFieldName != null) {
return fieldName + "." + arrayFieldName; // <-- BUG 🔴 no ".description" is ever appended
}This contradicts the parser/test assumption that real producers always append .description/.tags.
Recommended Fix
In FieldPathUtils.parseFieldPath (dot branch), only treat the last segment as a property when it matches known properties (e.g. description, tags); otherwise fold it into fieldName so columns.parent.child resolves as nested column parent.child. Additionally/alternatively, validate components.property() equals "description" in updateFieldDescription/getFieldDescription for description flows and refuse/flag mismatches.
History
This bug was introduced in commit 51ecf45 ("Task redesign (#25894)").
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone ✅
Activity
Fixes open-metadata#36615: one format for task field paths (open-meta…