Skip to content

No leading boundary when using POST withAttachmentUris #1212

@theBlbDan

Description

@theBlbDan

When using withAttachmentUris(), I receive an error on the server side, java.io.IOException: Corrupt form data: no leading boundary: != --%&ACRA_REPORT_DIVIDER&%

I am using ColdFusion via reverse proxy, but I also tested by targeting the CF instance directly. If I remove the withAttachmentUris() the report sends fine. It appears that HttpSender.Method.PUT works as expected, but I cannot get POST to ... post.

ACRA.init(this, new CoreConfigurationBuilder()
	.withBuildConfigClass(BuildConfig.class)
	.withReportFormat(StringFormat.JSON)
	.withAttachmentUris("content://<my_package>.acra/files/databases/v4/bibleText.blb")
	.withPluginConfigurations(
		new HttpSenderConfigurationBuilder()
			.withUri("<my_report_link>")
			.withHttpMethod(HttpSender.Method.POST)
			.withConnectionTimeout(5000)
			.withSocketTimeout(20000)
			.withDropReportsOnTimeout(false)
			.withCompress(false)
			.build()
	)
	.withStopServicesOnCrash(true),
	false
);

Version Information

  • Android: targetSdkVersion = 32
  • ACRA acraVersion = '5.9.7'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions