[Orchestrator Backend] The catalog:register
action attempts to create a location with a target of null
.
#1167
Labels
catalog:register
action attempts to create a location with a target of null
.
#1167
Describe the bug
When trying to utilize the orchestrator plugin, and running one of the create backend app workflows in the example workflow repository such as the
spring-boot-backend
workflow, the workflow will create the repository but will not be able to register the corresponding component. Instead it will output the following in the logs saying it's registeringnull
into the catalog:Debugging the backend shows that the
body
field of the requestreq
seems to have an invalid schema (contains thecatalogInfoUrl
field) when the schema for the action in the upstream hascatalogInfoUrl
be mutually exclusive withrepoContentsUrl
andcatalogInfoPath
:When testing with the regular scaffolder, the
body
field does not contain thecatalogInfoUrl
field. Used the sprint-boot-backend scaffolder action.This in turn breaks the logic for the
catalog:register
action in thescaffolder-backend
, resulting in anull
catalogInfoUrl
field being passed as thetarget
field for theaddLocations
function of thecatalog-client
.Expected Behavior
The catalog entity is registered into the catalog without any issues
What are the steps to reproduce this bug?
spring-boot-backend
workflowVersions of software used and environment
@janus-idp/[email protected]
@janus-idp/[email protected]
The text was updated successfully, but these errors were encountered: