fix(webjob): test coverage for _executionTasks=true requests without file upload#883
Merged
mulahasanovic merged 14 commits intoMay 12, 2026
Merged
Conversation
Non-empty payloads still throws with useComputeApi=null and _executionTasks=true flags
Coverage reportTotal coverage
Report generated by 🧪jest coverage report action from ffb42e8 |
allanbowe
reviewed
May 11, 2026
| const parsedUrl = new URL(apiUrl) | ||
| const isExecutionTasksEndpoint = | ||
| (parsedUrl.searchParams.has('_program') || | ||
| parsedUrl.searchParams.has('__program')) && |
Member
There was a problem hiding this comment.
__program should only happen when submitting JES API approach, not web
55db8f4
into
884-execution-tasks-web-support
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #882
Viya rejects requests posted to _executionTasks=true jobs with 502 or 403 when the adapter sends
Content-Type: multipart/form-dataand config set touseComputeApi=null(orundefined).Intent
Resolve empty form data payloads.
Update: An issue was confirmed on all multipart form data uploads that do not include an actual file upload with executionTasks flag set to true.
Implementation
override added when empty form-data is sent, settext/plaincontent typeuse url encoded payload when executionTasks flag is set, without a fileChecks
No PR (that involves a non-trivial code change) should be merged, unless all items below are confirmed! If an urgent fix is needed - use a tar file.
sasjs-cliunit tests are passing (npm test).sasjs-testsare passing. If you want to run it manually (instructions available here).