Skip to content

[Fix #1776] Make DefaultResourceLoader easier to customize - #1777

Merged
fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1776
Oct 20, 2026
Merged

fjtirado merged 1 commit into
open-workflow-specification:mainfrom
fjtirado:Fix_#1776

Conversation

@fjtirado

@fjtirado fjtirado commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Fix #1776

fileResource and httpResource are now protected.

Copilot AI balanced review requested due to automatic review settings October 20, 2026 10:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

URI rewriting introduces null-host failures and changes encoded path segments.

2 open issues
What changed in this PR

Makes DefaultResourceLoader easier to customize through protected resource-creation and URI-handling hooks.

Changes:

  • Exposes file and HTTP resource creation to subclasses.
  • Moves GitHub URL rewriting from HttpResource into the loader.
  • Converts the GitHub helper to use URI.
File Description
impl/​core/​src/​main/​java/​org/​openworkflow/​sdk/​impl/​resources/​HttpResource.java Uses the supplied URL without rewriting it.
impl/​core/​src/​main/​java/​org/​openworkflow/​sdk/​impl/​resources/​GitHubHelper.java Rewrites GitHub addresses using URI components.
impl/​core/​src/​main/​java/​org/​openworkflow/​sdk/​impl/​resources/​DefaultResourceLoader.java Adds protected customization hooks.

Review effort: Balanced

Comment thread impl/core/src/main/java/org/openworkflow/sdk/impl/resources/GitHubHelper.java Outdated
…ier to customize

fileResource and httpResource are now protected.

Signed-off-by: Francisco Javier Tirado Sarti <ftirados@ibm.com>
Copilot AI balanced review requested due to automatic review settings October 20, 2026 10:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused customization changes integrate with existing loading paths, with no unresolved blocking findings.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

@fjtirado
fjtirado merged commit 4917555 into open-workflow-specification:main Oct 20, 2026
4 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.

Allow define a custom HTTP client for getting external resource

2 participants