Skip to content

fix(asset_maker): catalog target reads no longer send a relationship type (ISSUE-122) - #421

Merged
dwolfson merged 3 commits into
odpi:mainfrom
dwolfson:fix/issue-122-catalog-target-type
Oct 4, 2026
Merged

dwolfson merged 3 commits into
odpi:mainfrom
dwolfson:fix/issue-122-catalog-target-type

Conversation

@dwolfson

@dwolfson dwolfson commented Oct 4, 2026

Copy link
Copy Markdown
Member

Summary

  • ISSUE-122: AssetMaker.get_catalog_target / get_catalog_targets sent metadataElementTypeName="CatalogTarget" (a relationship type), which the server rejects with OMAG-COMMON-400-019. _async_get_guid_request gains filter_results_by_type (default True, mirroring _async_get_results_body_request); both methods now pass False.
  • Second defect found while verifying live: get_catalog_target DICT/MD output was an all-blank record because the endpoint returns a relationship, not an element. Added _generate_catalog_target_output; the relationship's ends are element stubs (guid/uniqueName/type), so names come from uniqueName.
  • CatalogTargetProperties gains connectionName, metadataCollectionQualifiedName, permittedSynchronization, deleteMethod (previously dropped silently by extra='ignore').
  • Test fix: test_lists_own_subscriptions assumed EGERIA_USER was unset (screen falls back to garygeeke); it now pins the user, so it passes on machines with another EGERIA_USER.
  • ISSUE-122 logged in PYEGERIA_ISSUES.md, marked fixed pending this PR.

Test plan

  • 7 new micro-tests (test_asset_maker_catalog_targets.py), including the real response shape captured live
  • Full tests/micro-tests passes locally (also with EGERIA_USER set to a different user, and unset)
  • scripts/omvs_audit.py --service asset-maker: no catalog-target findings (one unrelated pre-existing unassign_action PATH mismatch)
  • Live against a quickstart platform: one throwaway Asset + CatalogTarget on the JDBC cataloguer, list/single read back in JSON/DICT/MD, both removed and confirmed not-found by GUID (twice)
  • Not checked: the integration daemon's log during the ~1s windows the target existed

🤖 Generated with Claude Code

dwolfson and others added 3 commits October 4, 2026 17:27
…me (ISSUE-122)

get_catalog_target(s) put the relationship type name "CatalogTarget" in the
request body as metadataElementTypeName; the server rejects it with
OMAG-COMMON-400-019. Add filter_results_by_type to _async_get_guid_request
(mirroring the results helper) and pass False from both methods.

Live verification also showed get_catalog_target's DICT/MD output was blank
because the endpoint returns a relationship, so add a small formatter for it.
CatalogTargetProperties gains connectionName, metadataCollectionQualifiedName,
permittedSynchronization and deleteMethod, which extra='ignore' was dropping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The screen filters on settings.User_Profile.user_name (EGERIA_USER), falling
back to garygeeke only when unset; the test hard-coded garygeeke as 'mine', so
it failed on any machine with EGERIA_USER set to another user.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Live verification showed the relationship's elementAtEnd1/2 are element stubs
(guid/uniqueName/type) with no properties block, so the formatter's connector
and target names were blank.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit f2532bb into odpi:main Oct 4, 2026
5 checks passed
@dwolfson
dwolfson deleted the fix/issue-122-catalog-target-type branch October 5, 2026 00:36
dwolfson added a commit to dwolfson/egeria-python that referenced this pull request Oct 5, 2026
… pending

The entry still said 'fixed on branch ..., pending PR/merge'; that branch merged in odpi#421 and shipped in 6.1.28 (and
6.1.29). Re-verified read-only on the 2026-10-05 rebuilt platform: get_catalog_targets returns 'No elements found'
in all three formats with no server error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson added a commit that referenced this pull request Oct 6, 2026
…(2026-10-05) (#433)

* docs(issues): fold in the Egeria team's response and our corrections (2026-10-05)

The Egeria team answered the open server-bug list (source oak2026 fb3d6fce53; fixes are in two unmerged PRs, so
no build has them, and nothing was tested live). Recorded per entry: 90, 112, 117, 124, 125 valid with fixes pending
merge; 102 and 108 not reproduced by them; 95 and 85 confirmed.

Corrections to our own entries: ISSUE-125's cause was an argument-order bug at OMRSRepositoryContentValidator:877,
not a GUID map (our hypothesis was wrong, confirmed in source); ISSUE-89's claim that rsa.key-id stops key
regeneration was wrong (RSAGenerator always generates a new pair); ISSUE-79 is probably a pyegeria bug, since
deep_copy defaulted to False until #399 (2026-09-29) and the folder helper never set it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

* docs(issues): ISSUE-122 is fixed and released (#421, 6.1.28), not pending

The entry still said 'fixed on branch ..., pending PR/merge'; that branch merged in #421 and shipped in 6.1.28 (and
6.1.29). Re-verified read-only on the 2026-10-05 rebuilt platform: get_catalog_targets returns 'No elements found'
in all three formats with no server error.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>

---------

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant