Skip to content

Fix lazy put calls - #289

Open
1000TurquoisePogs wants to merge 1 commit into
v3.x/masterfrom
fix/v3/put-calls
Open

Fix lazy put calls#289
1000TurquoisePogs wants to merge 1 commit into
v3.x/masterfrom
fix/v3/put-calls

Conversation

@1000TurquoisePogs

Copy link
Copy Markdown
Member

atlasPut in WebContent/js/utilities/urlUtils.ts decided whether to send a request as application/json (a z/OSMF utility request, e.g. rename or submit job) or text/plain (a raw dataset write) by substring-scanning the outgoing request body.

This is fragile way to separate 2 unrelated api calls that can break if the file contents contain json that looks like the json-type calls.
To avoid such a bug, I separated the 1 function into 2, and use types to further guard against developer mistakes

Signed-off-by: 1000TurquoisePogs <sgrady@rocketsoftware.com>
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.

1 participant