Investigate if har files with multipart/form-data content-types are correctly supported
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
While testing a bug in API Fuzzing handling of multipart/form-data operations, a har file created with a multipart body failed to work with API Security. The file was generated by the Insomnia Rest Client. It's possible it was incorrectly generated.
Error:
11:41:37.091 [ERR] <Peach.Web.Core.Services.WebRunnerMachine> Unexpected exception in WebRunnerMachine::Run()
System.IO.InvalidDataException: Missing content-type boundary.
at Peach.Web.Core.Services.WebApiService.ProcessMultiPart(Operation op, Byte[] body, MediaTypeHeaderValue contentType) in C:\api-fuzzing-src\web\PeachWeb\Core\Services\WebApiService.cs:line 586
at Peach.Web.Core.Services.WebApiService.OperationFromBody(Operation op, Request request, String partName) in C:\api-fuzzing-src\web\PeachWeb\Core\Services\WebApiService.cs:line 555
at Peach.Web.Core.Services.WebApiService.OperationFromRequest(Request request) in C:\api-fuzzing-src\web\PeachWeb\Core\Services\WebApiService.cs:line 70
at Peach.Web.Runner.Services.Readers.BaseRequestReader.<>c__DisplayClass2_0.<GetOperations>b__0(Request r) in C:\api-fuzzing-src\web\PeachWeb\Runner\Services\Readers\BaseReader.cs:line 128
at System.Linq.Enumerable.SelectIPartitionIterator`2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Peach.Web.Runner.Services.RunnerService.Start(Job job, IRunnerOptions options) in C:\api-fuzzing-src\web\PeachWeb\Runner\Services\RunnerService.cs:line 64
at Peach.Web.Core.Services.WebRunnerMachine.Run(IRunnerOptions runnerOptions, CancellationToken token) in C:\api-fuzzing-src\web\PeachWeb\Core\Services\WebRunnerMachine.cs:line 321
1
Edited by 🤖 GitLab Bot 🤖