Skip to content

[Fix-17704][HttpTask] The output parameters of an HTTP task cannot be referenced in downstream tasks.#17716

Merged
Gallardot merged 27 commits intoapache:devfrom
det101:dev
Dec 8, 2025
Merged

[Fix-17704][HttpTask] The output parameters of an HTTP task cannot be referenced in downstream tasks.#17716
Gallardot merged 27 commits intoapache:devfrom
det101:dev

Conversation

@det101
Copy link
Contributor

@det101 det101 commented Nov 24, 2025

Purpose of the pull request

close #17704

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #17637 where HTTP task output parameters could not be referenced in downstream tasks. The fix ensures that the variable pool containing output parameters is properly propagated to the TaskExecutionContext by calling setVarPool() after request validation.

  • Adds taskExecutionContext.setVarPool() call in the handle() method to propagate output parameters
  • Adds comprehensive test coverage to verify varPool is correctly set on the TaskExecutionContext

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
HttpTask.java Adds call to taskExecutionContext.setVarPool() to propagate HTTP response output parameters to downstream tasks
HttpTaskTest.java Adds test case to verify that varPool is correctly set on TaskExecutionContext after HTTP request execution

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

det101 and others added 2 commits November 26, 2025 17:11
…in/java/org/apache/dolphinscheduler/plugin/task/http/HttpTask.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SbloodyS SbloodyS added this to the 3.4.0 milestone Nov 27, 2025
@SbloodyS SbloodyS added the bug Something isn't working label Nov 27, 2025
@SbloodyS
Copy link
Member

#17637 has nothing to do with parameters passing. Please create a new issue and link to it. @det101

@det101
Copy link
Contributor Author

det101 commented Nov 27, 2025

#17637 has nothing to do with parameters passing. Please create a new issue and link to it. @det101

Sorry, it should be associated with #17704. The input number might have been entered incorrectly; it has been corrected.

@det101 det101 changed the title [Fix-17637][HttpTask] The output parameters of an HTTP task cannot be referenced in downstream tasks. [Fix-17704][HttpTask] The output parameters of an HTTP task cannot be referenced in downstream tasks. Nov 27, 2025
@det101 det101 requested a review from Copilot November 28, 2025 01:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM

@det101
Copy link
Contributor Author

det101 commented Dec 3, 2025

The testCreateDolphinDBDataSource e2e error should be related to this commit. Please help me re-trigger it @SbloodyS

@SbloodyS SbloodyS closed this Dec 5, 2025
@SbloodyS SbloodyS reopened this Dec 5, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@Gallardot Gallardot merged commit 4f693a5 into apache:dev Dec 8, 2025
74 of 75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [HttpTask] The output parameters of an HTTP task cannot be referenced in downstream tasks.

6 participants