Skip to content

[9.106.x-prod][SRVLOGIC-1137] Restore host in ProcessDefinition serviceUrl (#133) - #134

Merged
baldimir merged 1 commit into
kiegroup:9.106.x-prodfrom
baldimir:9.106.x-prod-fix-service-urls
Aug 24, 2026
Merged

[9.106.x-prod][SRVLOGIC-1137] Restore host in ProcessDefinition serviceUrl (#133)#134
baldimir merged 1 commit into
kiegroup:9.106.x-prodfrom
baldimir:9.106.x-prod-fix-service-urls

Conversation

@baldimir

Copy link
Copy Markdown
Member

Backport of: #133

)

getProcessDefinitionServiceUrl was using URI.create(endpoint).getPath(),
which drops the scheme and host and keeps only the path. This made
serviceUrl a relative path such as /callbackstatetimeouts/0.0.1 instead
of the service address, e.g. http://callbackstatetimeouts.example.com.

getProcessInstanceServiceUrl already handles this correctly using
URIInfo.buildURIInfo(...).truncatedURI(), which strips the trailing
id/version segments while keeping the host. Use the same approach for
ProcessDefinition, via the existing (previously unused)
URIInfo.buildURIInfo(ProcessDefinition) overload.

(cherry picked from commit b88b848)

@jankrystof-ibm jankrystof-ibm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@baldimir
baldimir merged commit 234189f into kiegroup:9.106.x-prod Aug 24, 2026
2 checks passed
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.

3 participants