Skip to content

Commit

Permalink
Fix - Existing custom properties getting removed on import of empty e…
Browse files Browse the repository at this point in the history
…xtension column (#19234)
  • Loading branch information
sonika-shah committed Jan 5, 2025
1 parent 35b281f commit bc825f8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,13 @@ private void updateExtension() {
return;
}

if (operation == Operation.PUT && updatedExtension == null) {
// Revert change to non-empty extension if it is being updated by a PUT request
// For PUT operations, existing extension can't be removed.
updated.setExtension(origExtension);
return;
}

List<JsonNode> added = new ArrayList<>();
List<JsonNode> deleted = new ArrayList<>();
JsonNode origFields = JsonUtils.valueToTree(origExtension);
Expand Down

0 comments on commit bc825f8

Please sign in to comment.