Skip to content

multipart/form-data support added for file upload operations#66

Merged
sergiishamrai-okta merged 6 commits intomasterfrom
okta-448365-file-uploading-support
Dec 13, 2021
Merged

multipart/form-data support added for file upload operations#66
sergiishamrai-okta merged 6 commits intomasterfrom
okta-448365-file-uploading-support

Conversation

@sergiishamrai-okta
Copy link
Copy Markdown
Contributor

@sergiishamrai-okta sergiishamrai-okta commented Dec 10, 2021

Need to have the ability to upload files, so POST multipart/form-data support added

Origin: OKTA-448365

Related PR: okta/okta-sdk-java#679

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 10, 2021

Codecov Report

Merging #66 (b6e5416) into master (afef3ee) will increase coverage by 2.93%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #66      +/-   ##
============================================
+ Coverage     60.80%   63.73%   +2.93%     
- Complexity      740      768      +28     
============================================
  Files            39       39              
  Lines          2707     2741      +34     
  Branches        505      510       +5     
============================================
+ Hits           1646     1747     +101     
+ Misses          886      810      -76     
- Partials        175      184       +9     
Impacted Files Coverage Δ
.../main/java/com/okta/commons/http/RequestUtils.java 65.38% <100.00%> (+32.05%) ⬆️
...mons/http/httpclient/HttpClientRequestFactory.java 81.15% <100.00%> (+73.88%) ⬆️
...kta/commons/http/okhttp/OkHttpRequestExecutor.java 91.11% <100.00%> (+12.44%) ⬆️
...s/http/httpclient/RepeatableInputStreamEntity.java 84.21% <0.00%> (+84.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afef3ee...b6e5416. Read the comment docs.

@sergiishamrai-okta sergiishamrai-okta marked this pull request as ready for review December 10, 2021 15:44
@bdemers
Copy link
Copy Markdown
Contributor

bdemers commented Dec 10, 2021

Did anything need to change for Apache HttpClient?

@sergiishamrai-okta
Copy link
Copy Markdown
Contributor Author

Did anything need to change for Apache HttpClient?

We use OkHttp3 client in Java Mgmt SDK so no changes are required in Apache HttpClient

@bdemers
Copy link
Copy Markdown
Contributor

bdemers commented Dec 10, 2021

@sergiishamrai-okta customers have a choice between ok-http and Apache http-client. Any features added to one client must be added to the other.

Copy link
Copy Markdown
Contributor

@arvindkrishnakumar-okta arvindkrishnakumar-okta left a comment

Choose a reason for hiding this comment

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

LGTM

@sergiishamrai-okta sergiishamrai-okta merged commit 0e2ea36 into master Dec 13, 2021
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.

4 participants