Skip to content

Comments

[PLAT-7571] Updated ApiClient.mustache to handle large file uploads#69

Closed
anderssjoblom-vertex wants to merge 1 commit intomainfrom
PLAT-7571_handle_large_files
Closed

[PLAT-7571] Updated ApiClient.mustache to handle large file uploads#69
anderssjoblom-vertex wants to merge 1 commit intomainfrom
PLAT-7571_handle_large_files

Conversation

@anderssjoblom-vertex
Copy link
Contributor

@anderssjoblom-vertex anderssjoblom-vertex commented Jan 30, 2026

Summary

This removes a "read the whole body into a string buffer" and to authenticate the multi-part data before sending it. This is not needed for a file upload and the custom mustache resolves that issue. The implementation is in the bottom of the file

The source of this file was taken from here: okhttp-gson

ApiClient.mustache

protected String requestBodyToString(RequestBody requestBody) throws ApiException { . . .

Test Plan

This will be tested using the plm-integration-kernel

Release Notes

None

Possible Regressions

None expected

@anderssjoblom-vertex anderssjoblom-vertex requested a review from a team as a code owner January 30, 2026 21:44
@sonarqubecloud
Copy link

@sourada-e5
Copy link
Contributor

Is there some way to do this other than plopping that 2k-line file in here? I'm thinking about maintenance: for example, if there's a security or other update to that code, we can't just update a version number of a dependency, we'd have to grab that file and reapply our changes with a three-way merge. I know we have some similar problems elsewhere in this library, just hoping we can avoid adding more to that.

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.

2 participants