GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: use random UUID for multipart boundary delimiter by dmitry-fa · Pull Request #916 · googleapis/google-http-java-client Conversation
|
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
d4b8f7d to
787b159
Compare
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
787b159 to
9971579
Compare
|
|
||
| public MultipartContent() { | ||
| super(new HttpMediaType("multipart/related").setParameter("boundary", "__END_OF_PART__")); | ||
| this("__END_OF_PART__" + java.util.UUID.randomUUID().toString() + "__"); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to import java.util.UUID? e.g a conflict with a similarly named class?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| {"<xml>Hi</xml>", "application/xml"}, | ||
| {"{x:1,y:2}", "application/json"} | ||
| }; | ||
| StringBuilder expectedContentSB = new StringBuilder(); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
no abbreviations per google style, but simply "expectedContent" or even just expected is fine.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
expectedContent is used later. renamed to expectedStringBuilder
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ByteArrayOutputStream out = new ByteArrayOutputStream(); | ||
| content.writeTo(out); | ||
| String expectedContent = expectedContentSB.toString(); | ||
| assertEquals(expectedContent, out.toString()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
out.toString needs to specify a locale
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
fixed in two places. Thanks for catching that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…en-plugin to v1.6.13 (googleapis#916) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.12` -> `1.6.13` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sonatype/nexus-maven-plugins</summary> ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/google-auth-library-java).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
MultipartContent class uses the same simple string as the default boundary CRC error when uploading a specific content to Google cloud storage
There was an error while loading. Please reload this page.