Skip to content

MultipartContent class uses the same simple string as the default boundary #909

@fazunenko

Description

@fazunenko

com.google.api.client.http.MultipartContent class by default uses constant '__END_OF_PART__' string as the boundary (part delimiter).
It will cause problem if the data to be transfered includes this string. Such problems could be really hard to investigate.
Example of such problem:
googleapis/google-cloud-java#6386

The class also provides setBoundary(String) method to alter the default boundary, but this method is not accessible from the other project.

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions