[RTFACT-12776] NuGet virtual repo produces a NPE with $batch requests Created: 02/Nov/16  Updated: 17/Sep/20  Resolved: 06/Dec/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: NuGet
Affects Version/s: 4.14.0
Fix Version/s: 6.6.0

Type: Bug Priority: High
Reporter: Uriah Levy Assignee: Lior Gur (Inactive)
Resolution: Fixed Votes: 2
Labels: PB_Done

Attachments: Text File stacktrace.txt    
Issue Links:
relates to RTFACT-17118 NuGet /$batch & packages/$count endpo... Resolved


Virtual Nuget repositories delegates nuget API requests to its aggregated repos. With $batch request specifically, the virtual delegation doesn't create a proper request handler for $batch requests and that causes a NPE - see attached stacktrace

Comment by Lior Gur (Inactive) [ 06/Dec/18 ]

I was trying to reproduce the issue using several nuget client (2.8.6, 3 and 4)

but i reproduce the issue.

The only way to reproduce it is with curl.

before the fix all batch request returned 400 Bad Request.

The syntax for the request in the body that we support is like this: 


for now the following syntax is not supported


Generated at Tue Sep 29 11:20:58 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.